2023-07-20 16:07:27 +00:00
|
|
|
[build-system]
|
2023-11-23 17:01:10 +00:00
|
|
|
requires = ["setuptools"]
|
2023-07-20 16:07:27 +00:00
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
[project]
|
2023-08-08 12:20:45 +00:00
|
|
|
name = "clan-cli"
|
2023-07-20 16:07:27 +00:00
|
|
|
description = "cLAN CLI tool"
|
2023-11-23 17:01:10 +00:00
|
|
|
dynamic = ["version"]
|
2023-08-03 13:33:08 +00:00
|
|
|
scripts = { clan = "clan_cli:main" }
|
2023-07-28 08:52:13 +00:00
|
|
|
|
2023-08-26 09:23:15 +00:00
|
|
|
[tool.setuptools.packages.find]
|
2024-03-01 11:15:44 +00:00
|
|
|
exclude = ["clan_cli.nixpkgs*", "result"]
|
2023-08-09 16:03:46 +00:00
|
|
|
|
2023-08-09 15:59:07 +00:00
|
|
|
[tool.setuptools.package-data]
|
2024-03-10 08:18:18 +00:00
|
|
|
clan_cli = ["py.typed", "config/jsonschema/*", "webui/assets/**/*", "vms/mimetypes/**/*"]
|
2023-10-16 13:03:53 +00:00
|
|
|
|
2023-07-20 16:07:27 +00:00
|
|
|
[tool.pytest.ini_options]
|
2023-10-16 13:03:53 +00:00
|
|
|
testpaths = "tests"
|
2023-09-28 13:24:06 +00:00
|
|
|
faulthandler_timeout = 60
|
2023-10-16 13:03:53 +00:00
|
|
|
log_level = "DEBUG"
|
2023-10-27 21:36:45 +00:00
|
|
|
log_format = "%(levelname)s: %(message)s\n %(pathname)s:%(lineno)d::%(funcName)s"
|
2023-10-29 18:35:29 +00:00
|
|
|
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --durations 5 --color=yes --new-first" # Add --pdb for debugging
|
2023-07-28 10:10:07 +00:00
|
|
|
norecursedirs = "tests/helpers"
|
2023-11-23 17:01:10 +00:00
|
|
|
markers = ["impure", "with_core"]
|
2023-07-28 10:10:07 +00:00
|
|
|
|
2023-07-20 16:07:27 +00:00
|
|
|
[tool.mypy]
|
2023-11-29 11:38:00 +00:00
|
|
|
python_version = "3.11"
|
2023-07-20 16:07:27 +00:00
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_untyped_calls = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
no_implicit_optional = true
|
2023-08-26 09:23:15 +00:00
|
|
|
exclude = "clan_cli.nixpkgs"
|
2023-07-20 16:07:27 +00:00
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
2023-08-10 22:05:52 +00:00
|
|
|
module = "argcomplete.*"
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "jsonschema.*"
|
2023-07-20 16:07:27 +00:00
|
|
|
ignore_missing_imports = true
|
|
|
|
|
2023-10-23 20:34:43 +00:00
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "ipdb.*"
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
2023-07-20 16:07:27 +00:00
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "pytest.*"
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
2023-07-20 23:08:11 +00:00
|
|
|
[[tool.mypy.overrides]]
|
2023-08-10 22:05:52 +00:00
|
|
|
module = "setuptools.*"
|
2023-07-20 23:08:11 +00:00
|
|
|
ignore_missing_imports = true
|
|
|
|
|
2023-07-20 16:07:27 +00:00
|
|
|
[tool.ruff]
|
2023-11-29 11:38:00 +00:00
|
|
|
target-version = "py311"
|
2023-07-20 16:07:27 +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", "E731", "ANN101", "ANN401", "A003"]
|