Skip to content

Commit 9f1c3a3

Browse files
committed
update black, cleanup static check rules
(cherry picked from commit 07682d1) fix ExecResult str & pep8 false-negative (cherry picked from commit e59514f) Update MyPy Now logging is correctly inspected and should not be scipped in typecheck. (cherry picked from commit 6fc5cfc) 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 (cherry picked from commit b7cee77) Switch travis, optimize editorconfig (cherry picked from commit 14ce05f) Better pylint and more docstrings in code (cherry picked from commit ebc36e9) Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
1 parent 908a748 commit 9f1c3a3

27 files changed

+327
-277
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,pyi}]
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)