-
Notifications
You must be signed in to change notification settings - Fork 35
/
.flake8
62 lines (62 loc) · 1.46 KB
/
.flake8
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
59
60
61
62
[flake8]
ignore =
# No space before colon
E203
W503
# Missing docstring in __init__ (we do it in the class)
D107
# "First line should be in imperative mood" -- this doesn't work for properties, see https://github.com/PyCQA/pydocstyle/issues/301
D401
# allow method names to be the same as python builtins
A003
# inline strong start-string without end-string. This is OK in the case of **kwargs in parameters.
RST210
# Ignore public methods without docstrings, because it doesn't check for inheritance :/
D102
# TODO: remove. (one-line docstring should fit on one line with quotes)
D200
# TODO: remove. (first line should end with a period)
D400
# TODO: remove (line too long)
E501
# TODO: remove
D105
# TODO: remove
D204
# TODO: remove
D202
# TODO: remove
D205
# logging statement uses f-string
G004
# No explicit stacklevel keyword argument in warn calls
B028
max-line-length = 88
# Should be 18.
max-complexity = 25
exclude =
development/*
# Not ready for this yet.
per-file-ignores =
tests/*:D,T001,T201 # print statements allowed in tests
scripts/*: F821, T001
docs/conf.py:D,A
*/__init__.py:F401
src/hmf/mass_function/fitting_functions.py:D101
rst-roles =
class
func
mod
data
const
meth
attr
exc
obj
rst-directives =
note
warning
versionadded
versionchanged
deprecated
seealso