-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
88 lines (83 loc) · 2.35 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[flake8]
select=ANN,B,B9,BLK,C,D,DAR,E,F,I,N,PD,R,TC,TR,S,W
max-complexity=15
max-mccabe-complexity=6
max-cognitive-complexity=10
max-expression-complexity=10
max-line-length=100
ignore=
# ANN001 Missing type annotation for function argument: doesn't allow to use functools dispatching
ANN001
# ANN002 Missing type annotation for *drop_items: ... as above
ANN002
# ANN101 Missing type annotation for self in method
ANN101
# ANN102 Missing type annotation for cls in classmethod
ANN102
# ANN202 Missing return type annotation for protected function: ... dispatching
ANN202
#ANN204 Missing return type annotation for special method
ANN204
# B905 `zip()` without an explicit `strict=` parameter - ignore while support 3.8, 3.9
B905
# C812 Missing trailing comma: black compatibility
C812
# Missing docstring in public method
# D102
# Missing docstring in public function
# D103
# D105 Missing docstring in magic method (__hash__, __eq__)
D105
# Missing docstring in __init__
D107
# E203: Whitespace before ‘:'
E203
# E501: Line too long
E501
# W503: Line break before binary operator: for compatibility with black settings
W503
# import order is controlled by isort
I100
I101
I201
I202
# ignore some questionable pandas-vet warnings
# PD005: use operator instead of method
PD005
# We use at() to access single values
PD008
# And we use iat()
PD009
exclude=
.git
__pycache__
docs/source/conf.py
adhoc
wrk
build
dist
*.pyc
*.egg-info
.cache
.eggs
notebooks/dvp/*.py
.nox
.idea
per-file-ignores =
benchmarks/*:S101,DAR101
noxfile.py:ANN,DAR101
tools/clear-prev-dist-info.py:S404,S603,S607
tests/*:ANN,B950,DAR100,D100,D101,D102,D103,D104,DAR101,DAR103,S101
src/xpypact/inventory.py:F811
src/xpypact/data_arrays.py:ANN401,PD011
src/xpypact/utils/resource.py:ANN202
src/xpypact/fluxes.py:F811
ignore-decorators=click,pytest
docstring-convention = google
rst-roles = class,const,func,meth,mod,ref
rst-directives = deprecated
extend-ignore =
# Google Python style is not RST until after processed by Napoleon
# See https://github.com/peterjc/flake8-rst-docstrings/issues/17
RST201,RST203,RST301,
# vim: set ts=4 sw=0 tw=79 ss=0 ft=ini et ai :