-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
95 lines (82 loc) · 2.03 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[flake8]
format = wemake
show-source = True
doctests = True
enable-extensions = G
statistics = False
# Plugins:
accept-encodings = utf-8
max-complexity = 6
max-line-length = 80
radon-max-cc = 10
radon-no-assert = True
radon-show-closures = True
# wemake-python-styleguide
max-methods = 8
ignore =
D100 # Missing docstring in public module: this gave us no value
DAR # Skip docstrings for now.
RST # Skip docstrings for now.
D104 # empty __init__ files ok.
WPS412 # init file with logic ok
exclude =
# Trash and cache:
.git
__pycache__
.venv
.venv/**
.eggs
*.egg
*.md
docs/*.py
per-file-ignores =
# in list.py
# ignore too many arguments
storage_bucket/list.py: WPS211
# in Tests:
# S101: allow asserts
# WPS114: Underscore name pattern is okay in tests
# WPS226: OverusedStringViolation
# WPS432: magic numbers are okay in tests
# WPS442: Found outer scope names shadowing ok in tests for fixtures
tests/*.py: S101, WPS226, WPS432, WPS442
[isort]
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
include_trailing_comma = true
default_section = FIRSTPARTY
line_length = 79
[tool:pytest]
# py.test options:
norecursedirs = *.egg .eggs dist build docs .tox .git __pycache__
# set environment variable
env =
D:GOOGLE_APPLICATION_CREDENTIALS=key.json
# args
addopts =
--doctest-modules
--cov=storage_bucket
--cov-report=term:skip-covered
--cov-report=html
--cov-report=xml
--cov-branch
--cov-fail-under=100
[mypy]
# We have disabled this checks due to some problems with `mypy` type
# system, it does not look like it will be fixed soon.
# disallow_any_explicit = True
# disallow_any_generics = True
allow_redefinition = False
check_untyped_defs = True
disallow_untyped_calls = True
ignore_errors = False
ignore_missing_imports = True
implicit_reexport = False
strict_optional = True
strict_equality = True
no_implicit_optional = True
warn_no_return = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True