-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.cfg
80 lines (66 loc) · 1.83 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
73
74
75
76
77
78
79
80
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html
[flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
show-source = True
statistics = False
doctests = False
# Plugins:
max-complexity = 6
max-line-length = 100
# max-module-members = 11
# wemake-python-styleguide settings:
i-control-code = False
# Disable some pydocstyle checks:
# Exclude some pydoctest checks globally:
ignore = D100, D104, D106, D401, W504, X100, RST303, RST304, DAR103, DAR203, WPS216, WPS317, WPS318, WPS319, WPS211, NIP323, NIP324, WPS326, WPS125, WPS100, WPS115, S404, C812, WPS204, S602, WPS510, WPS348, WPS323, WPS502, WPS221
# Excluding some directories:
exclude =
.git
__pycache__
.venv
.eggs
*.egg
tests
[isort]
include_trailing_comma = true
use_parentheses = true
multi_line_output = 3
line_length = 100
indent = 4
force_grid_wrap=0
default_section = THIRDPARTY
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
import_heading_future=Future:
import_heading_stdlib=Stdlib:
import_heading_thirdparty=Thirdparty:
import_heading_firstparty=Firstparty:
import_heading_localfolder=Localfolder:
[darglint]
# darglint configuration:
# https://github.com/terrencepreilly/darglint
strictness = long
[tool:pytest]
# Directories that are not visited by pytest collector:
norecursedirs = *.egg .eggs dist build docs .tox .git __pycache__
# Extra options:
addopts =
--strict
--tb=short
--doctest-modules
--cov=odoo_backup_db_cli
--cov-report=term:skip-covered
--cov-report=html
--cov-branch
--cov-fail-under=100
[mypy]
check_untyped_defs = False
ignore_missing_imports = True
[doc8]
# doc8 configuration: https://pypi.org/project/doc8/
ignore-path = docs/_build
max-line-length = 80
sphinx = True