-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
29 lines (27 loc) · 1.04 KB
/
tox.ini
File metadata and controls
29 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[testenv:pep8]
deps = flake8
flake8-bugbear
flake8-comprehensions
flake8-eradicate
flake8-return
flake8_pep3101
flake8_simplify
mccabe
pycodestyle
pyflakes
commands = flake8
[flake8]
exclude = .git,__pycache__,sphinx,build,dist,docs,ext,tools/SpectroscoPy,tools/vasp_born.py
# W503: "line break before binary operator", you have to choose between W503 and W504,
# I prefer to have the operator at the begining of the newline
# E402: "module level import not at top of file" debatable
# SIM106: "handle error case first"
# while I see the point, it may lead to weird contorsion of the branches
# sometimes
# R504: "you shouldn`t assign value to variable if it will be use only as return value"
# good idea in principle but it does not detect when eventually effectful code
# is found between the affectation and the return
# E203: "E203 whitespace before ':'"
# Actually a good one, but clashes with Black in the case of slices
ignore = W503, E402, SIM106, R504, E203
max-line-length = 149