2021-01-31 22:40:30 -08:00
|
|
|
[flake8]
|
2021-02-11 22:48:08 -08:00
|
|
|
# We ignore the line length issues here, since black will take care of them.
|
|
|
|
|
max-line-length = 150
|
2021-01-31 22:40:30 -08:00
|
|
|
max-complexity = 15
|
2021-02-18 20:05:39 -08:00
|
|
|
ignore =
|
|
|
|
|
# Ignore: 1 blank line required before class docstring.
|
|
|
|
|
D203,
|
|
|
|
|
# See https://stackoverflow.com/a/57074416.
|
|
|
|
|
W503
|
2021-02-11 21:59:54 -08:00
|
|
|
exclude =
|
|
|
|
|
.git,
|
2021-02-15 15:04:21 -08:00
|
|
|
src/datahub/metadata,
|
2021-04-05 19:11:28 -07:00
|
|
|
venv,
|
2021-02-11 21:59:54 -08:00
|
|
|
__pycache__
|
|
|
|
|
per-file-ignores =
|
|
|
|
|
# imported but unused
|
|
|
|
|
__init__.py: F401
|
2021-01-31 22:40:30 -08:00
|
|
|
|
|
|
|
|
[mypy]
|
2021-02-23 15:55:31 -08:00
|
|
|
plugins =
|
|
|
|
|
sqlmypy,
|
|
|
|
|
pydantic.mypy
|
2021-04-05 19:11:28 -07:00
|
|
|
exclude = \.git|venv|build|dist
|
2021-03-26 21:57:05 -07:00
|
|
|
ignore_missing_imports = yes
|
2021-01-31 22:40:30 -08:00
|
|
|
strict_optional = yes
|
2021-03-26 21:57:05 -07:00
|
|
|
check_untyped_defs = yes
|
|
|
|
|
# eventually we'd like to enable these
|
2021-01-31 22:40:30 -08:00
|
|
|
disallow_untyped_defs = no
|
2021-03-18 02:05:05 -04:00
|
|
|
disallow_incomplete_defs = no
|
2021-01-31 22:40:30 -08:00
|
|
|
|
|
|
|
|
[isort]
|
2021-02-11 23:14:20 -08:00
|
|
|
profile = black
|
2021-01-31 22:40:30 -08:00
|
|
|
indent=' '
|
|
|
|
|
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
2021-02-15 15:04:21 -08:00
|
|
|
skip_glob=src/datahub/metadata
|
2021-01-31 22:40:30 -08:00
|
|
|
|
|
|
|
|
[tool:pytest]
|
2021-04-01 12:15:05 -07:00
|
|
|
addopts = --cov src --cov-report term --cov-config setup.cfg --strict-markers
|
|
|
|
|
markers =
|
|
|
|
|
slow: marks tests as slow (deselect with '-m "not slow"')
|
2021-02-09 10:15:17 -08:00
|
|
|
testpaths =
|
|
|
|
|
tests/unit
|
|
|
|
|
tests/integration
|
2021-01-31 22:40:30 -08:00
|
|
|
|
|
|
|
|
[coverage:report]
|
2021-03-18 03:06:48 +00:00
|
|
|
fail_under = 75
|
2021-01-31 22:40:30 -08:00
|
|
|
show_missing = true
|
|
|
|
|
exclude_lines =
|
|
|
|
|
pragma: no cover
|
|
|
|
|
@abstract
|
2021-02-05 21:03:04 -08:00
|
|
|
omit =
|
|
|
|
|
# omit codegen
|
2021-02-15 15:04:21 -08:00
|
|
|
src/datahub/metadata/*
|