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-11 21:59:54 -08:00
|
|
|
ignore = D203
|
|
|
|
|
exclude =
|
|
|
|
|
.git,
|
|
|
|
|
src/gometa/metadata,
|
2021-02-11 22:48:08 -08:00
|
|
|
# TODO: need to remove this line once ldap is built
|
|
|
|
|
src/gometa/ingestion/source/ldap.py,
|
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]
|
|
|
|
|
mypy_path = src
|
2021-02-09 17:39:51 -08:00
|
|
|
plugins = sqlmypy
|
2021-01-31 22:40:30 -08:00
|
|
|
namespace_packages = true
|
|
|
|
|
strict_optional = yes
|
|
|
|
|
disallow_untyped_defs = no
|
2021-02-09 17:39:51 -08:00
|
|
|
|
|
|
|
|
[mypy-confluent_kafka.*]
|
|
|
|
|
ignore_missing_imports = yes
|
|
|
|
|
[mypy-avro.*]
|
|
|
|
|
ignore_missing_imports = yes
|
2021-01-31 22:40:30 -08:00
|
|
|
|
|
|
|
|
[isort]
|
|
|
|
|
line_length = 120
|
|
|
|
|
indent=' '
|
|
|
|
|
multi_line_output = 3
|
|
|
|
|
lines_between_types = 1
|
|
|
|
|
include_trailing_comma = true
|
|
|
|
|
use_parentheses = true
|
|
|
|
|
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
|
|
|
|
|
|
|
|
|
[tool:pytest]
|
|
|
|
|
addopts = --cov src --cov-report term --cov-config setup.cfg
|
2021-02-09 10:15:17 -08:00
|
|
|
testpaths =
|
|
|
|
|
tests/unit
|
|
|
|
|
tests/integration
|
2021-01-31 22:40:30 -08:00
|
|
|
|
|
|
|
|
[coverage:report]
|
2021-02-11 16:41:43 -08:00
|
|
|
fail_under = 80
|
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
|
|
|
|
|
src/gometa/metadata/*
|