mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Configure mypy as a pre-commit hook and add all type hints necessary for mypy to pass. There's still more work to be done here typing a lot more code, but this provides a clear starting point.
31 lines
594 B
INI
31 lines
594 B
INI
[wheel]
|
|
universal = 1
|
|
|
|
[tool:pytest]
|
|
addopts =
|
|
--tb=short
|
|
--cov-config .coveragerc
|
|
--cov=vdirsyncer
|
|
--cov-report=term-missing:skip-covered
|
|
--no-cov-on-fail
|
|
--color=yes
|
|
# filterwarnings=error
|
|
|
|
[flake8]
|
|
application-import-names = tests,vdirsyncer
|
|
extend-ignore =
|
|
E203, # Black-incompatible colon spacing.
|
|
W503, # Line jump before binary operator.
|
|
I100,
|
|
I202
|
|
max-line-length = 88
|
|
exclude = .eggs,build
|
|
import-order-style = smarkets
|
|
|
|
[isort]
|
|
force_single_line=true
|
|
|
|
[mypy]
|
|
ignore_missing_imports = True
|
|
# See https://github.com/python/mypy/issues/7511:
|
|
warn_no_return = False
|