Skip to content

Commit 2ea8823

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

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

requirements-codestyle.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
flake8
2+
flake8-expandtab~=0.3

tox.ini

+13-4
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,26 @@ 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+
# W391: Blank line at end of file missing
38+
# F403: `from <module> import *` used; unable to detect undefined names ←– Probably should be fixed…
39+
ignore = E221,E222,E262,E265,E303,W391,F403
40+
max-line-length = 100
41+
tab-width = 4
3242

3343
[pytest]
3444
python_files =
3545
test_*.py
3646
*_test.py
3747
tests.py
3848
addopts =
39-
--doctest-modules
40-
--ignore ipfsapi/client.py
49+
# --doctest-modules / Totally useless since it cannot properly check the `client` package
4150
ipfsapi
4251
test/unit
4352
test/functional

0 commit comments

Comments
 (0)