2023-07-20 16:07:27 +00:00
|
|
|
[build-system]
|
2023-07-28 08:52:13 +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-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
|
|
|
|
2023-08-26 09:23:15 +00:00
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
exclude = ["clan_cli.nixpkgs*"]
|
2023-08-09 16:03:46 +00:00
|
|
|
|
2023-08-09 15:59:07 +00:00
|
|
|
[tool.setuptools.package-data]
|
2023-08-25 15:08:39 +00:00
|
|
|
clan_cli = [ "config/jsonschema/*", "webui/assets/**/*"]
|
2023-07-20 16:07:27 +00:00
|
|
|
|
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-25 11:11:28 +00:00
|
|
|
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail --durations 5 --color=yes --new-first --maxfail=1" # Add --pdb for debugging
|
2023-07-28 10:10:07 +00:00
|
|
|
norecursedirs = "tests/helpers"
|
2023-09-15 14:42:58 +00:00
|
|
|
markers = [ "impure" ]
|
2023-07-28 10:10:07 +00:00
|
|
|
|
2023-07-20 16:07:27 +00:00
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.10"
|
|
|
|
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]
|
|
|
|
line-length = 88
|
|
|
|
|
2023-10-23 20:34:43 +00:00
|
|
|
select = [ "E", "F", "I", "N"]
|
2023-07-20 16:07:27 +00:00
|
|
|
ignore = [ "E501" ]
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
line-length = 88
|
2023-07-28 08:52:13 +00:00
|
|
|
target-version = [ "py310" ]
|
|
|
|
include = "\\.pyi?$"
|
2023-07-20 16:07:27 +00:00
|
|
|
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
|
|
|
|
)/
|
|
|
|
'''
|