-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.cfg
44 lines (38 loc) · 1.02 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
# setup pytest, dependencies: pytest pytest-cov pytest-sugar pytest-rerunfailures
# setup flake8, wemake-python-styleguide
[flake8]
format = wemake
show-source = True
statistics = True
doctests = True
count = True
# wemake
max-local-variables = 10
max-module-members = 14
# rst-docstrings
rst-roles = class, func, ref
rst-directives = todo
# exclude some errors
max-complexity = 10
ignore = S101, C101, N, DAR401, DAR402, W504, WPS306, SC
exclude = .git, src/prettypyplot/__pycache__, docs, build, dist
per-file-ignores =
src/prettypyplot/_cmaps/*.py:WPS339, E501
src/prettypyplot/*__init__.py:E402, F401, F403, D104, D400
setup.py:D100
tests/*.py:WPS, DAR101, DAR201
# setup flake8-isort
[isort]
include_trailing_comma = true
multi_line_output = 3
line_length = 79
skip =
src/prettypyplot/__init__.py
# setup darglint
[darglint]
# does not work with numpy style
# (see https://github.com/terrencepreilly/darglint/issues/69)
strictness = short
docstring_style = numpy
# ignore private function
ignore_regex=^_(.*)