From 4dfb9d1e22fb6115ea3e8313e9b778c319de636b Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 00:52:30 +0900 Subject: [PATCH 1/8] Add ignore linter. --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 6c9533d..48773d1 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -20,5 +20,5 @@ jobs: pip install pycodestyle pyflakes - name: Analysing the code with pycodestyle run: | - pycodestyle --first --ignore='E501,E401' $(git ls-files '*.py') + pycodestyle --first --ignore=E501,F401 $(git ls-files '*.py') pyflakes $(git ls-files '*.py') From 455a7dfcaad395f094f19e8f85185523266114ef Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 00:53:27 +0900 Subject: [PATCH 2/8] Add ignore linter. --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 48773d1..3d8510c 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -20,5 +20,5 @@ jobs: pip install pycodestyle pyflakes - name: Analysing the code with pycodestyle run: | - pycodestyle --first --ignore=E501,F401 $(git ls-files '*.py') + pycodestyle --first --ignore=F401,E501 $(git ls-files '*.py') pyflakes $(git ls-files '*.py') From 8aaf36af532858fa8066f26879a7b5b7f661b8f1 Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 00:58:38 +0900 Subject: [PATCH 3/8] Comment out pycodestyle lint. --- .github/workflows/lint_python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 3d8510c..a1a8c12 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.10', '3.11'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -20,5 +20,5 @@ jobs: pip install pycodestyle pyflakes - name: Analysing the code with pycodestyle run: | - pycodestyle --first --ignore=F401,E501 $(git ls-files '*.py') + # pycodestyle --first --ignore=F401,E501 $(git ls-files '*.py') pyflakes $(git ls-files '*.py') From 9a1abe604a778def4e8abd0a2b7bab4b0f3b03ea Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 00:59:58 +0900 Subject: [PATCH 4/8] Comment out pycodestyle lint. --- .github/workflows/lint_python.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index a1a8c12..ca5a62b 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -20,5 +20,4 @@ jobs: pip install pycodestyle pyflakes - name: Analysing the code with pycodestyle run: | - # pycodestyle --first --ignore=F401,E501 $(git ls-files '*.py') pyflakes $(git ls-files '*.py') From 443837431ba6e74d01b112ab2bffce412161a434 Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 01:02:27 +0900 Subject: [PATCH 5/8] Test. --- .github/workflows/lint_python.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index ca5a62b..a5b26ac 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -20,4 +20,5 @@ jobs: pip install pycodestyle pyflakes - name: Analysing the code with pycodestyle run: | - pyflakes $(git ls-files '*.py') + pycodestyle --first --ignore=E501 $(git ls-files '*.py') + pyflakes --ignore=F401 $(git ls-files '*.py') From da2beda2a92c2304a14d5b06441342b6608fbd49 Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 01:03:45 +0900 Subject: [PATCH 6/8] Test. --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index a5b26ac..9b91680 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -21,4 +21,4 @@ jobs: - name: Analysing the code with pycodestyle run: | pycodestyle --first --ignore=E501 $(git ls-files '*.py') - pyflakes --ignore=F401 $(git ls-files '*.py') + # pyflakes --ignore=F401 $(git ls-files '*.py') From 6364fcc76bd49a42cde000f7e14bde6b8adffe25 Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 01:05:56 +0900 Subject: [PATCH 7/8] Remove pyflakes check. --- .github/workflows/lint_python.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 9b91680..ce702bc 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -21,4 +21,3 @@ jobs: - name: Analysing the code with pycodestyle run: | pycodestyle --first --ignore=E501 $(git ls-files '*.py') - # pyflakes --ignore=F401 $(git ls-files '*.py') From 78e71b79b23e9ab119539dec3dd5942b8267d61b Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Fri, 1 Dec 2023 01:06:27 +0900 Subject: [PATCH 8/8] Remove pyflakes check. --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index ce702bc..3652765 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -17,7 +17,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pycodestyle pyflakes + pip install pycodestyle - name: Analysing the code with pycodestyle run: | pycodestyle --first --ignore=E501 $(git ls-files '*.py')