Skip to content

Commit 34ab81d

Browse files
committed
Squashed 'lint-configs/' changes from 2e32bc6..73fe88f
73fe88f Fix merge conflict. 72d3b7c Merge pull request #1 from StackStorm/update_lint_configs 2709c47 Update lint config with changes from StackStorm/st2#4657. 418d2eb Sync flake8 config with StackStorm/st2 master. 9b6b10b Update flake8 config so we ignore build/ and dist/ directories. e43b03a Update pylint config. git-subtree-dir: lint-configs git-subtree-split: 73fe88f2da7403d69bc5ebd7c6d22d12860c3744
1 parent 747c4b7 commit 34ab81d

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

python/.flake8

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
[flake8]
22
max-line-length = 100
3-
ignore = E128,E402
4-
exclude=*.egg/*
3+
ignore =
4+
E128,E402,E722,W504,
5+
H101,H104,H105,H106,H107,H108,H109,
6+
H201,H202,H203,H204,H205,H206,H207,H208,H209,H234,H238,
7+
H301,H302,H303,H304,H305,H306,H307,H308,H309,
8+
H401,H402,H403,H404,H405,H406,H407,H408,H409,
9+
H501,H502,H503,H504,H505,H506,H507,H508,H509,
10+
H601,H602,H603,H604,H605,H606,H607,H608,H609,
11+
H701,H702,H703,H704,H705,H706,H707,H708,H709,
12+
H801,H802,H803,H804,H805,H806,H807,H808,H809,
13+
H901,H902,H903,H904,H905,H906,H907,H908,H909
14+
exclude=*.egg/*,build,dist
15+
16+
# Configuration for flake8-copyright extension
17+
copyright-check = True
18+
copyright-min-file-size = 1
19+
select = E,F,W,C

python/.pylintrc

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
# C0111 Missing docstring
2+
# C0111 Missing docstring
33
# I0011 Warning locally suppressed using disable-msg
44
# I0012 Warning locally suppressed using disable-msg
55
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
@@ -16,12 +16,14 @@
1616
# R0913 Too many arguments
1717
# R0904 Too many public methods
1818
# E0211: Method has no argument
19-
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801
19+
# E1128: Assigning to function call which only returns None Used when an assignment is done on a function call but the inferred function returns nothing but None.
20+
# E1129: Context manager ‘%s’ doesn’t implement __enter__ and __exit__. Used when an instance in a with statement doesn’t implement the context manager protocol(__enter__/__exit__).
21+
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
2022

2123
[TYPECHECK]
2224
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
2325
# static analysis
24-
ignored-modules=distutils,eventlet.green.subprocess
26+
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves
2527

2628
[FORMAT]
2729
max-line-length=100

0 commit comments

Comments
 (0)