2023-11-23 13:37:05 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["setuptools"]
|
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
2023-12-04 15:56:42 +00:00
|
|
|
|
2023-11-23 13:37:05 +00:00
|
|
|
[project]
|
|
|
|
name = "clan-vm-manager"
|
|
|
|
dynamic = ["version"]
|
|
|
|
scripts = { clan-vm-manager = "clan_vm_manager:main" }
|
|
|
|
|
2024-03-01 11:15:44 +00:00
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
exclude = ["result"]
|
|
|
|
|
2023-11-23 13:37:05 +00:00
|
|
|
[tool.setuptools.package-data]
|
2023-12-04 15:56:42 +00:00
|
|
|
clan_vm_manager = ["**/assets/*"]
|
2023-11-23 13:37:05 +00:00
|
|
|
|
2024-03-22 18:08:35 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
testpaths = "tests"
|
|
|
|
faulthandler_timeout = 60
|
|
|
|
log_level = "DEBUG"
|
|
|
|
log_format = "%(levelname)s: %(message)s\n %(pathname)s:%(lineno)d::%(funcName)s"
|
|
|
|
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --durations 5 --color=yes --new-first" # Add --pdb for debugging
|
|
|
|
norecursedirs = "tests/helpers"
|
|
|
|
markers = ["impure"]
|
|
|
|
|
2023-11-23 13:37:05 +00:00
|
|
|
[tool.mypy]
|
2023-11-29 11:38:00 +00:00
|
|
|
python_version = "3.11"
|
2023-11-23 13:37:05 +00:00
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_untyped_calls = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
|
|
|
|
[tool.ruff]
|
2023-11-29 11:38:00 +00:00
|
|
|
target-version = "py311"
|
2023-11-23 13:37:05 +00:00
|
|
|
line-length = 88
|
2024-03-03 05:19:55 +00:00
|
|
|
lint.select = [ "E", "F", "I", "U", "N", "RUF", "ANN", "A" ]
|
|
|
|
lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"]
|