forked from patnr/HistoryMatching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
58 lines (52 loc) · 1.78 KB
/
pyproject.toml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
####################
# Config linting #
####################
[tool.autopep8]
max_line_length = 88
ignore = "W6"
[tool.flakeheaven]
exclude = [".*"]
max_line_length = 88
format = "grouped" # also try "stat"
show_source = false
#whitelist = "../../allowlist.txt" # Used by flake8-spellcheck.
[tool.flakeheaven.plugins]
pyflakes = ["+*"]
pycodestyle = ["+*",
"-E24", "-W503", "-E123", "-E226", "-E704", "-E121", "-W504", "-E126", # flake8 defaults
"-E711", "-E712", # "Comparison to True/None should be with 'is'"
"-E221", # Allow operator alignment
"-E251", # Allow operator alignment for dicts
"-E266", # Allow ## block comments
"-C408", # Prefer {} to dict()
# "-E271", "-E701", and more... # if-list alignment
# "-E201", "-E202", "-E203", "-E241", "-E231", # leave arrays as printed
"-E202", "-E203",
# "-E301", "-E302", # dont put spaces between functions
]
#mccabe = ["+*"]
#pylint = ["+*"]
pep8-naming = ["+*", # disable almost all
"-N80[1-3]", "-N806", "-N81[1-7]"]
#flake8-bandit = ["-*"]
flake8-bugbear = ["+*"]
flake8-builtins = ["+*"]
flake8-comprehensions = ["+*", "-C408"]
#flake8-darglint = ["+*"]
flake8-commas = ["+*"]
flake8-docstrings = ["+*", "-D105",
"-D401", # issues/68
"-D102", "-D103", "-D107", "-D400", # TODO 4: enable these
]
#flake8-eradicate = ["+*"]
#flake8-isort = ["+*"]
#flake8-pytest-style = ["+*"]
#flake8-spellcheck = ["+*"]
[tool.flakeheaven.exceptions."HistoryMatch.py"]
pycodestyle = ["-E402", "-E501", "-E703", "-E302", "-E305"]
flake8-docstrings = ["-D100"]
[tool.flakeheaven.exceptions."Optimisation.py"]
pycodestyle = ["-E402", "-E501", "-E703", "-E302", "-E305"]
flake8-docstrings = ["-D100"]
[tool.flakeheaven.exceptions."simulator/plotting.py"]
pycodestyle = ["-E731"] # do not assign a lambda expression, use a def