-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.cfg
72 lines (66 loc) · 2.21 KB
/
setup.cfg
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
[pycodestyle]
max-line-length = 120
max-doc-length = 100
ignore = E221,E226,E241,E242, E731, E741, W0105, W503, N803, N806,\
D100,D101,D102,D103,D105,D106,D107,\
D400,D401,D414,\
F403,F405,F722,\
RST304,RST305
# E221 multiple spaces before operator
# E226 missing whitespace around arithmetic operator [ignored by default]
# E241 multiple spaces after ':' [ignored by default]
# E242 tab after `,' [ignored by default]
# E731 do not assign a lambda expression, use a def
# E741 do not use variables named 'l', 'O', or 'I'
# F405, F403 star import usage from pymor.basic
# F722 syntax error in forward annotation
# W0105 String statement has no effect (we use triple qoted strings as documentation in some files)
# W503 line break before binary operator
# N803 argument name should be lowercase (we use single capital letters everywhere for vectorarrays)
# N806 same for variables in function
# D10? missing docstring in module, function, method, magic, __init__, public nested class
# D40? first line ending with period, summary in imperative mood
# D414 "section has no content" Happens since flake8 looks for sections by name, not markup
# (i.e. finds "empty" parameters section when used as an argument)
[flake8]
max-line-length = 120
max-doc-length = 100
ignore = E221,E226,E241,E242, E731, E741, W0105, W503, N803, N806,\
D100,D101,D102,D103,D105,D106,D107,\
D400,D401,D414,\
F403,F405,F722,\
RST304,RST305
# The following exclude avoids wrong warnings for unused imports
exclude = __init__.py
[check-manifest]
ignore =
.ci/*
.ci
*.yml
*.yaml
.mailmap
[versioneer]
VCS = git
style = pep440-pre
versionfile_source = src/pymor_dealii/version.py
# this is mandatory for the processed version.py to end up in .whl
versionfile_build = pymor_dealii/version.py
tag_prefix = ''
[tool:pytest]
testpaths = src/test/
python_files = src/test/*.py
python_classes = Test
pep8maxlinelength = 120
pep8ignore = E221,E226,E241,E242
addopts=-p no:warnings
junit_family=xunit2
[metadata]
# this is mandatory to lave license end up in .whl
license_file = LICENSE
[coverage:run]
relative_files = True
source =
src/pymor_dealii
src/test
omit =
src/pymor_dealii/version.py