forked from ska-sa/astrokat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
30 lines (28 loc) · 981 Bytes
/
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
[nosetests]
verbosity = 3
detailed-errors = 1
with-xunit = 1
[flake8]
max-line-length = 90
max-doc-length = 90
docstring-convention = numpy
statistics = True
show-source = True
; Print the total number of errors.
count = True
; max-complexity = 10
; List of checks to ignore
; D401 First line should be in imperative mood; try rephrasing
; W503: line break before binary operator (This is incompartible with Black,
; See: https://black.readthedocs.io/en/stable/the_black_code_style.html#line-breaks-binary-operators)
ignore = D401,W503
exclude = *.egg/*,build,dist,__pycache__,.mypy_cache,.pytest_cache,__init__.py,docs/*.py
; C errors are not selected by default, so add them to your selection
select = B,C,D,E,F,I,W
[pydocstyle]
convention = numpy
match = .*\.py
inherit = false
; List of checks to ignore
; D401: First line should be in imperative mood. According to https://github.com/google/styleguide/blob/gh-pages/pyguide.md this rule is disabled.
add-ignore = D401