Skip to content

Commit

Permalink
Add pylint to ci
Browse files Browse the repository at this point in the history
Currently every current pylint issue is exempted.

Excemptions (disables) in .pylintrc are to be removed one-by-one in
upcoming PRs.
  • Loading branch information
berland committed Jan 9, 2023
1 parent f20735c commit 3c71486
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:

- name: Install dependencies
run: |
pip install .
pip install -r dev-requirements.txt
- name: Run black
Expand All @@ -39,3 +40,7 @@ jobs:
- name: Lint with flake8
run: |
flake8
- name: pylint
run: |
pylint komodo tests setup.py
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
black
flake8
isort
pylint
pytest
54 changes: 54 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,56 @@
[flake8]
max-line-length = 88

[pylint.message]
disable = bad-inline-option,
bare-except,
broad-except,
consider-using-dict-items,
consider-using-f-string,
consider-using-from-import,
consider-using-set-comprehension,
consider-using-sys-exit,
consider-using-with,
deprecated-pragma,
duplicate-code,
expression-not-assigned,
file-ignored,
fixme,
inconsistent-return-statements,
invalid-name,
keyword-arg-before-vararg,
line-too-long,
literal-comparison,
locally-disabled,
logging-not-lazy,
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
missing-timeout,
no-else-return,
protected-access,
raise-missing-from,
raw-checker-failed,
redefined-builtin,
redefined-outer-name,
suppressed-message,
too-few-public-methods,
too-many-arguments,
too-many-branches,
too-many-locals,
too-many-statements,
unidiomatic-typecheck,
unnecessary-comprehension,
unnecessary-lambda,
unnecessary-pass,
unspecified-encoding,
unused-argument,
unused-import,
unused-variable,
use-a-generator,
use-dict-literal,
use-implicit-booleaness-not-comparison,
use-symbolic-message-instead,
used-before-assignment,
useless-object-inheritance,
wrong-import-position,

0 comments on commit 3c71486

Please sign in to comment.