1[pycodestyle]
2exclude=rdr.py,dynatree_server.py
3max-line-length=100
4# W191: indentation contains tabs
5# W504: line break after binary operator
6# E101: indentation contains mixed spaces and tabs
7# E501: line too long (fixed at 80 chars)
8# E225: missing whitespace around operator (too strict)
9# E203: whitespace before ':' (problem: raw_ints[cur.rowcount, :])
10# E116: unexpected indentation (comment)
11# E121: indentation is not a multiple of four
12# E122: missing indentation or outdented
13# E123: closing bracket does not match indentation of opening bracket's line
14# E124: closing bracket does not match visual indentation
15# E125: continuation line does not distinguish itself from next logical line
16# E126: continuation line over-indented for hanging indent
17# E127: over-indented for visual indent
18# E128: continuation line under-indented for visual indent
19# E117: over-indented
20ignore=W191,W504,E101,E121,E122,E123,E124,E125,E126,E127,E128,E116,E117
21# repeat=True
22
23[pydocstyle]
24# D105: Missing docstring in magic method
25# D107: Missing docstring in __init__
26# D202 : No blank lines allowed after function docstring
27# D213: Multi-line docstring summary should start at the second line
28# D203: 1 blank line required before class docstring (found 0)
29# D206: Spaces to indent docstrings
30# D407: Mising dashed underline after section ('Yields') <- pydocstyle doesn't
31# yet fully support Google style docstrings
32# D406: Section name should end with a newline <- again, incomplete Google style
33ignore=D105,D107,D213,D203,D206,D407,D406
34
35[tool:pytest]
36# This is documented as a way to supress all warnings but doesn't work
37# addopts = -p no:warnings
38# This is documented as an alternate way to surpress warnings
39filterwarnings =
40 ignore::DeprecationWarning
41# filterwarnings =
42 # ignore:.*:DeprecationWarning
43# ignore:.*invalid escape:DeprecationWarning
44testpaths=tests
45#norecursedirs=*
46norecursedirs=legacy
47# DBCN chart tests/legacy tests/database
48doctest_optionflags= NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER
49junit_family=xunit2
50
51[tool:mypy]
52# this is supposed to remove the "No library stub file for module 'django.core.wsgi'" type warnings
53# but doesn't work
54mypy_suppress_stub_warnings = true
55
56[tool:coverage]
57# omit=/usr
58source=chart
59data_file=/.coverage
60parallel=True