forked from ska-sa/katcp-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
32 lines (30 loc) · 1.1 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
[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)
; E402: Import at top, too many circular import fixes.
; E266: Too many leading '#' for block comment (used for sphinx @brief commments)
ignore = D401,W503,E402,E266
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