Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/lint-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Run linter
run: find . -name "*.py" | xargs pylint
- name: Run linter for images code
run: find . -name "*.py" ! -path "*/tests/*" | xargs pylint

- name: Install pylint dependencies for tests
run: pip3 install pytest

- name: Run linter for tests code
run: find "./tests" -name "*.py" | xargs pylint --rcfile=pylintrc.tests
7 changes: 7 additions & 0 deletions pylintrc.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tests-configuration]
disable = duplicate-code, # Tests having similar code
no-member, # pytest global variables in conftest.py not detected
consider-using-with, # conftest temporary directory would need a with
import-error # EntrypointHook unable to import entrypoint