-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
80 lines (66 loc) · 2.15 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
[pytest]
addopts = --cov . --cov-report term --cov-report html --cov-report xml --reuse-db
norecursedirs = .git .tox .* CVS _darcs {arch} *.egg dist
[flake8]
max_line_length = 88
max_local_variables = 10
max_string_usages = 5
ignore =
# C812: missing trailing comma - ignored because Black handles placement of trailing commas
C812,
# P101: format string contains unindexed parameters (e.g. {} vs {0})
P101,
# W503: line break before binary operator - ignored to allow for how Black splits lines
W503,
# WPS201: Module with too many imports - Ignored to allow for using multiple libraries in solids definition
WPS201,
# WPS305: Forbid `f` strings - Ignored to allow for the use of f-strings
WPS305,
# WPS306: Found class without a base class - ignore to allow for new-style classes
WPS306,
# WPS326: Forbid implicit string concatenation - allow for handling splitting multiline strings inside parentheses
WPS326
# WPS332: Forbid walrus (:=) operator - Allow for use of new language feature that can reduce code lines
WPS332,
# WPS348: Forbid starting lines with a `.` - ignored to allow for how Black occasionally breaks up chained statements
WPS348
# E501: Black handles line length
E501
# E203: Not pep8 compliant and black formatting breaks this
E203
per-file-ignores =
# Don't enforce assert checks in test files
test_*.py:S101,WPS218,
inline-quotes = double
i_control_code = True
exclude =
.git,
.venv,
__pycache__
[mypy]
namespace_packages = True
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = "testapp.settings.test"
[mypy-factory.*]
ignore_missing_imports = True
[mypy-freezegun.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-oauth2_provider.*]
ignore_missing_imports = True
[mypy-responses.*]
ignore_missing_imports = True
[mypy-anymail.*]
ignore_missing_imports = True
[mypy-bs4.*]
ignore_missing_imports = True
[mypy-premailer.*]
ignore_missing_imports = True
[mypy-toolz.*]
ignore_missing_imports = True
[mypy-dj_database_url.*]
ignore_missing_imports = True