Jan Dittberner
7c675a6fdb
- update dependencies - use tox for testing - use type hints - use pathlib and ipaddress from standard library instead of path and ipcalc - fix Sphinx deprecation warnings
27 lines
446 B
INI
27 lines
446 B
INI
[tox]
|
|
requires =
|
|
tox>=4
|
|
env_list = lint, type, py{39,310,311,312}
|
|
|
|
[testenv]
|
|
description = run unit tests
|
|
deps =
|
|
pytest>=7
|
|
pytest-sugar
|
|
commands =
|
|
pytest {posargs:tests}
|
|
|
|
[testenv:lint]
|
|
description = run linters
|
|
skip_install = true
|
|
deps =
|
|
black==22.12
|
|
commands = black {posargs:.}
|
|
|
|
[testenv:type]
|
|
description = run type checks
|
|
deps =
|
|
mypy>=0.991
|
|
commands =
|
|
mypy {posargs:--install-types --non-interactive jandd tests}
|