Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
berland committed Jan 10, 2023
1 parent 0f9a8a8 commit f517711
Showing 3 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ jobs:

- name: Install dependencies
run: |
pip install .
pip install -r dev-requirements.txt
- name: Run black
@@ -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
55 changes: 55 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,57 @@
[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-raise,
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 f517711

Please sign in to comment.