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 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
[metadata]
license_files = COPYING
[sdist]
owner = root
group = root
[tool:pytest]
addopts = --doctest-modules --doctest-glob="*.doctest" stdnum tests --ignore=stdnum/iso9362.py --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
[coverage:run]
branch = true
[coverage:report]
fail_under = 100
show_missing = true
[coverage:html]
directory = coverage
[build_sphinx]
all_files = 1
[flake8]
ignore =
D205,D209,D400 # our docstrings are multi-line blobs
D302 # We don't care about Unicode docstrings
E731 # we occasionally use lambda
F403,F405 # we use * imports
Q001 # we use '''...''' multi-line strings
Q003 # don't force "" strings to avoid escaping quotes
T001,T201 # we use print statements in the update scripts
W504 # we put the binary operator on the preceding line
max-complexity = 15
max-line-length = 120
extend-exclude =
.github
.mypy_cache
.pytest_cache
.ruff_cache
.venv
build
[isort]
lines_after_imports = 2
multi_line_output = 4
known_third_party =
lxml
openpyxl
requests
xlrd
[mypy]
python_version = 3.9
strict = True
warn_unreachable = True
[egg_info]
tag_build =
tag_date = 0
|