Skip to content

Commit

Permalink
Add pylint to Makefile & fix pylintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jun 26, 2023
1 parent 1878ba7 commit 2e11c1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ all: prepare test
prepare:
pip install -r requirements_test.txt

.PHONY: pylint
pylint:
pylint ocw/lib/*.py cleanup_k8s.py

.PHONY: test
test:
flake8 --max-line-length=130 webui
Expand Down
5 changes: 5 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[MASTER]
disable=
C0103, # Module name "EC2" doesn't conform to snake_case naming style
C0114, # missing-module-docstring
C0115, # missing-class-docstring
C0116, # missing-function-docstring
Expand All @@ -8,10 +9,14 @@ disable=
C0415, # Import outside toplevel
E1101, # no-member
R0904, # Too many public methods
R0912, # Too many branches
R1702, # Too many nested blocks
W0201, # Attribute %r defined outside __init__
W0221, # arguments-differ
W0237, # arguments-renamed
W0602, # Using global for 'FOOBAR' but no assignment is done
W0603, # Using the global statement
W0613, # Unused argument 'args'
W0703, # broad-except
W0719, # broad-exception-raised

Expand Down

0 comments on commit 2e11c1e

Please sign in to comment.