clan-core/pkgs/clan-cli/pyproject.toml

60 lines
1.5 KiB
TOML
Raw Normal View History

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
2023-08-08 12:20:45 +00:00
name = "clan-cli"
description = "cLAN CLI tool"
dynamic = ["version"]
2023-08-03 13:33:08 +00:00
scripts = { clan = "clan_cli:main" }
2023-07-28 08:52:13 +00:00
[tool.setuptools.packages.find]
exclude = ["clan_cli.nixpkgs*"]
2023-08-09 16:03:46 +00:00
[tool.setuptools.package-data]
2023-11-30 13:23:12 +00:00
clan_cli = ["config/jsonschema/*", "webui/assets/**/*", "vms/mimetypes/**/*"]
[tool.pytest.ini_options]
testpaths = "tests"
2023-09-28 13:24:06 +00:00
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", "with_core"]
[tool.mypy]
2023-11-29 11:38:00 +00:00
python_version = "3.11"
warn_redundant_casts = true
disallow_untyped_calls = true
disallow_untyped_defs = true
no_implicit_optional = true
2023-12-19 17:02:06 +00:00
disable_error_code = ["has-type"]
exclude = "clan_cli.nixpkgs"
[[tool.mypy.overrides]]
module = "argcomplete.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "jsonschema.*"
ignore_missing_imports = true
2023-10-23 20:34:43 +00:00
[[tool.mypy.overrides]]
module = "ipdb.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
[tool.ruff]
2023-11-29 11:38:00 +00:00
target-version = "py311"
line-length = 88
select = [ "E", "F", "I", "U", "N", "RUF", "ANN", "A" ]
2023-11-30 13:13:32 +00:00
ignore = ["E501", "E402", "ANN101", "ANN401", "A003"]