-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
67 lines (52 loc) · 1.56 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
# Configuration is partially borrowed from:
# https://github.com/wemake-services/wemake-python-styleguide/blob/master/setup.cfg
[flake8]
# wemake-python-styleguide configuration options:
# https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/configuration.html
max-returns = 2
max-arguments = 6
max-module-members = 9
max-imports = 15
# Plugins:
max-complexity = 6
max-line-complexity = 15
max-line-length = 120
# Exclude some checks globally:
ignore =
D100, D101, D102, D103, D105, D107, D104, D401, WPS305, WPS306, WPS458, WPS301, E203, W503, WPS236, DAR101, DAR103, DAR201,
# Allow %s string formatting in logs
WPS323,
per-file-ignores =
src/schedulers.py: WPS432, WPS221
src/transform.py: WPS432
src/model.py: WPS432
src/config.py: S101
src/train.py: WPS201
src/student_model.py: WPS608, WPS432, WPS111
[isort]
# isort configuration:
# https://pycqa.github.io/isort/docs/configuration/profiles.html
profile = wemake
[darglint]
docstring_style=google
[mypy]
# The mypy configurations: http://bit.ly/2zEl9WI
enable_error_code = truthy-bool, redundant-expr
allow_redefinition = false
check_untyped_defs = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
no_implicit_optional = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true