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

74 lines
1.4 KiB
TOML
Raw Normal View History

[build-system]
2023-07-28 08:52:13 +00:00
requires = [ "setuptools" ]
build-backend = "setuptools.build_meta"
[project]
2023-08-08 12:20:45 +00:00
name = "clan-cli"
description = "cLAN CLI tool"
2023-07-28 08:52:13 +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
[tool.setuptools.packages.find]
exclude = ["clan_cli.nixpkgs*"]
2023-08-09 16:03:46 +00:00
[tool.setuptools.package-data]
clan_cli = [ "config/jsonschema/*", "webui/assets/**/*"]
[tool.pytest.ini_options]
faulthandler_timeout = 30
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --workers auto --durations 5"
norecursedirs = "tests/helpers"
2023-09-15 14:42:58 +00:00
markers = [ "impure" ]
[tool.mypy]
python_version = "3.10"
warn_redundant_casts = true
disallow_untyped_calls = true
disallow_untyped_defs = true
no_implicit_optional = true
exclude = "clan_cli.nixpkgs"
[[tool.mypy.overrides]]
module = "argcomplete.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "jsonschema.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 88
select = [ "E", "F", "I", "U", "N"]
ignore = [ "E501" ]
[tool.black]
line-length = 88
2023-07-28 08:52:13 +00:00
target-version = [ "py310" ]
include = "\\.pyi?$"
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''