Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure pylint for tests #52

Merged
merged 2 commits into from
Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@
[entrypoint-tests]
patricklodder marked this conversation as resolved.
Show resolved Hide resolved
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