From ca97c0627c0e2b48e54a28c93c661ae26b91e84d Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 22 Jan 2025 21:15:09 +0100 Subject: [PATCH] Update workflow files --- .github/workflows/pylint-linux.yaml | 4 ---- .github/workflows/pylint-windows.yaml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/.github/workflows/pylint-linux.yaml b/.github/workflows/pylint-linux.yaml index 6fc2e97..f3383fe 100644 --- a/.github/workflows/pylint-linux.yaml +++ b/.github/workflows/pylint-linux.yaml @@ -24,14 +24,12 @@ jobs: python -m pip install --upgrade setuptools if [ -f command_runner/requirements.txt ]; then pip install -r command_runner/requirements.txt; fi - name: Lint with Pylint - if: ${{ matrix.python-version == '3.9' }} run: | python -m pip install pylint # Do not run pylint on python 3.3 because isort is not available for python 3.3, don't run on python 3.4 because pylint: disable=xxxx does not exist # Disable E0401 import error since we lint on linux and pywin32 is obviously missing python -m pylint --disable=C,W,R,E0401 --max-line-length=127 command_runner - name: Lint with flake8 - if: ${{ matrix.python-version == '3.9' }} run: | python -m pip install flake8 # stop the build if there are Python syntax errors or undefined names @@ -39,8 +37,6 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide python -m flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics command_runner - name: Lint with Black - # Don't run on python < 3.6 since black does not exist there, run only once - if: ${{ matrix.python-version == '3.9' }} run: | pip install black python -m black --check command_runner \ No newline at end of file diff --git a/.github/workflows/pylint-windows.yaml b/.github/workflows/pylint-windows.yaml index 5efc9b9..d47441a 100644 --- a/.github/workflows/pylint-windows.yaml +++ b/.github/workflows/pylint-windows.yaml @@ -25,13 +25,11 @@ jobs: python -m pip install --upgrade setuptools if (Test-Path "command_runner/requirements.txt") { pip install -r command_runner/requirements.txt } - name: Lint with Pylint - if: ${{ matrix.python-version == '3.9' }} run: | python -m pip install pylint # Do not run pylint on python 3.3 because isort is not available for python 3.3, don't run on python 3.4 because pylint: disable=xxxx does not exist python -m pylint --disable=C,W,R --max-line-length=127 command_runner - name: Lint with flake8 - if: ${{ matrix.python-version == '3.9' }} run: | python -m pip install flake8 # stop the build if there are Python syntax errors or undefined names @@ -39,8 +37,6 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide python -m flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics command_runner - name: Lint with Black - # Don't run on python < 3.6 since black does not exist there, run only once - if: ${{ matrix.python-version == '3.9' }} run: | pip install black python -m black --check command_runner \ No newline at end of file