Skip to content

Commit d898ce6

Browse files
committed
Defuse flake8/pycodestyle most annoying “style” checks
1 parent 3ae1d87 commit d898ce6

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

requirements-codestyle.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
flake8
2+
flake8-expandtab~=0.3

tox.ini

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,27 @@ commands =
2727
flake8 {posargs}
2828

2929
[flake8]
30-
ignore = E222,E221,F403,E265
31-
exclude = .venv,.git,.tox,+junk,dist,doc,*egg,build,tools,test,docs,*__init__.py
30+
exclude = .git,.tox,+junk,dist,doc,*egg,build,tools,test,docs,*__init__.py
31+
32+
# E221: Multiple spaces before operator
33+
# E222: Multiple spaces after operator
34+
# E262: Inline comment should start with '# ': Breaks tagged comments (ie: '#TODO: ')
35+
# E265: Block comment should start with '# ': ^
36+
# E303: More than 2 consecutive newlines
37+
# W292: No newline at end of file
38+
# W391: Blank line at end of file (sometimes trigged instead of the above!?)
39+
# F403: `from <module> import *` used; unable to detect undefined names ←– Probably should be fixed…
40+
ignore = E221,E222,E262,E265,E303,W292,W391,F403
41+
max-line-length = 100
42+
tab-width = 4
3243

3344
[pytest]
3445
python_files =
3546
test_*.py
3647
*_test.py
3748
tests.py
3849
addopts =
39-
--doctest-modules
40-
--ignore ipfsapi/client.py
50+
# --doctest-modules / Totally useless since it cannot properly check the `client` package
4151
ipfsapi
4252
test/unit
4353
test/functional

0 commit comments

Comments
 (0)