Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Jan 22, 2025
1 parent bd85b3a commit ca97c06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/pylint-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,19 @@ 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
python -m flake8 --count --select=E9,F63,F7,F82 --show-source --statistics command_runner
# 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
4 changes: 0 additions & 4 deletions .github/workflows/pylint-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,18 @@ 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
python -m flake8 --count --select=E9,F63,F7,F82 --show-source --statistics command_runner
# 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

0 comments on commit ca97c06

Please sign in to comment.