forked from amundsen-io/amundsencommon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
41 lines (33 loc) · 989 Bytes
/
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
[flake8]
format = pylint
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv
max-complexity = 10
max-line-length = 120
# flake8-tidy-imports rules
banned-modules =
dateutil.parser = Use `ciso8601` instead
flask.ext.restful = Use `flask_restful`
flask.ext.script = Use `flask_script`
flask_restful.reqparse = Use `marshmallow` for request/response validation
haversine = Use `from fast_distance import haversine`
py.test = Use `pytest`
python-s3file = Use `boto`
[pep8]
max-line-length = 79
[tool:pytest]
addopts = --cov=amundsen_common --cov-fail-under=70 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv
[coverage:run]
omit = */models/*
branch = True
[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
no_implicit_optional = true
[mypy-tests.*]
disallow_untyped_defs = false