54 lines
1.1 KiB
INI
Raw Normal View History

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
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,
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]
plugins =
sqlmypy,
pydantic.mypy
exclude = \.git|venv|build|dist
ignore_missing_imports = yes
2021-01-31 22:40:30 -08:00
strict_optional = yes
check_untyped_defs = yes
# eventually we'd like to enable these
2021-01-31 22:40:30 -08:00
disallow_untyped_defs = no
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]
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]
fail_under = 75
2021-01-31 22:40:30 -08:00
show_missing = true
exclude_lines =
pragma: no cover
@abstract
omit =
# omit codegen
2021-02-15 15:04:21 -08:00
src/datahub/metadata/*