forked from escaped/django-video-encoding
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
95 lines (70 loc) · 1.85 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
[metadata]
description-file =
README.rst
CHANGELOG
[bdist_wheel]
universal = 1
[isort]
line_length = 80
known_project = video_encoding
[flake8]
exclude =
.git,
__pycache__,
dist
max-line-length = 80
max-complexity = 9
[coverage:run]
branch = True
include = video_encoding/*
omit =
*/tests/*
[coverage:report]
show_missing = True
exclude_lines =
pragma: no cover
# Don't complain about missing debug-only code:
def __unicode__
def __repr__
def __str__
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
[tool:pytest]
addopts = --flake8 --durations=10 --cov=video_encoding --cov-report term
norecursedirs = build dist migrations
DJANGO_SETTINGS_MODULE=test_proj.settings
testpaths =
video_encoding
test_proj
python_paths = .
[mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version=3.6
platform=Linux
# flake8-mypy expects the two following for sensible formatting
show_column_numbers=True
show_error_context=False
# do not follow imports (except for ones found in typeshed)
follow_imports=skip
# suppress errors about unsatisfied imports
ignore_missing_imports=True
# allow untyped calls as a consequence of the options above
disallow_untyped_calls=False
# allow returning Any as a consequence of the options above
warn_return_any=False
# treat Optional per PEP 484
strict_optional=True
# ensure all execution paths are returning
warn_no_return=True
# lint-style cleanliness for typing
warn_redundant_casts=True
warn_unused_ignores=True
# The following are off by default. Flip them on if you feel
# adventurous.
disallow_untyped_defs=False
check_untyped_defs=False