Skip to content

Commit b7cee77

Browse files
committed
Update static checks and make code better
* doc8 -> better docs * pylint reconfigure and switch logging to python 3.6 f-strings * drop not used logger instances * use better global const naming * drop py2 related config from pylint (master is py3.6+ only) * better .editorconfig - default indent style is 2, 4 is for python only Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
1 parent 2b5b7ba commit b7cee77

21 files changed

+484
-553
lines changed

.coveragerc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[run]
22
source =
3-
exec_helpers
3+
exec_helpers
44
omit =
5-
test/*
5+
test/*
66

77
[report]
88
exclude_lines =
9-
# Have to re-enable the standard pragma
10-
pragma: no cover
9+
# Have to re-enable the standard pragma
10+
pragma: no cover
1111

12-
# Don't complain about missing debug-only code:
13-
def __repr__
12+
# Don't complain about missing debug-only code:
13+
def __repr__
1414

15-
# Don't complain if non-runnable code isn't run:
16-
if __name__ == .__main__.:
15+
# Don't complain if non-runnable code isn't run:
16+
if __name__ == .__main__.:

.editorconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
indent_size = 4
6+
indent_size = 2
77
indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.{py,ini}]
11+
[*.{py,pyx,pxd}]
12+
indent_size = 4
1213
max_line_length = 120
1314

14-
[*.{yml,yaml,rst}]
15-
indent_size = 2
15+
[*.rst]
16+
max_line_length = 150
1617

1718
[Makefile]
1819
indent_style = tab

0 commit comments

Comments
 (0)