-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.cfg
48 lines (39 loc) · 1.19 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
[flake8]
format = pylint
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv,build/*,amazon-neptune-tools
max-complexity = 11
max-line-length = 120
# TODO: wrap these lines
per-file-ignores=tests/unit/neptune_bulk_loader/*.py:E501
# 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`
[pycodestyle]
max-line-length = 120
[isort]
multi_line_output=5
skip=venv,amazon-neptune-tools
[tool:pytest]
# NB: coverage is 80 with RT tests
addopts = --cov=amundsen_gremlin --cov-fail-under=60 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv
[coverage:run]
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
ignore_missing_imports = True
no_implicit_optional = true
[mypy-tests.*]
disallow_untyped_defs = false