-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.cfg
76 lines (65 loc) · 1.71 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
[wheel]
universal = 1
[metadata]
license_file = LICENSE
name = pynamodb-attributes
version = 0.5.1
description = Common attributes for PynamoDB
long_description = file:README.md
long_description_content_type = text/markdown
url = https://www.github.com/lyft/pynamodb-attributes
maintainer = Lyft
maintainer_email = [email protected]
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
[options]
packages = find:
install_requires=
pynamodb>=5.0.0
python_requires = >=3
[options.package_data]
pynamodb_attributes =
py.typed
[flake8]
format = pylint
max-complexity = 10
max-line-length = 120
ignore = E203
[tool:pytest]
addopts = --cov=pynamodb_attributes --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv
env =
# We don't need real AWS access in unit tests
D:AWS_ACCESS_KEY_ID=1
D:AWS_SECRET_ACCESS_KEY=1
[coverage:run]
branch = True
[coverage:report]
fail_under = 100
exclude_lines =
# the 'DEFAULT_EXCLUDE' from coverage.config:
\#\s*(pragma|PRAGMA)[:\s]?\s*(no|NO)\s*(cover|COVER)
# Exclude type-checker-only "code"
if TYPE_CHECKING:
# Exclude ellipsis bodies of type-stub functions
^\s*\.\.\.\s*$
# Exclude pytest.fail calls
pytest\.fail
# Exclude intentionally unimplemented branches
raise NotImplementedError
[coverage:xml]
output = build/coverage.xml
[coverage:html]
directory = build/coverage_html
[mypy]
check_untyped_defs = True
disallow_any_generics = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
ignore_missing_imports = True
strict_equality = True
strict_optional = True
warn_no_return = True
warn_redundant_casts = True
[mypy-tests.*]
disallow_untyped_defs = False