In this directory we generate all the files that we need to load nixpkgs. This seems more robust than all those environment variables that may or not may be set.
72 lines
1.3 KiB
TOML
72 lines
1.3 KiB
TOML
[build-system]
|
|
requires = [ "setuptools" ]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "clan-cli"
|
|
description = "cLAN CLI tool"
|
|
dynamic = [ "version" ]
|
|
scripts = { clan = "clan_cli:main" }
|
|
|
|
[tool.setuptools.packages.find]
|
|
exclude = ["clan_cli.nixpkgs*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
clan_cli = ["config/jsonschema/*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail"
|
|
norecursedirs = "tests/helpers"
|
|
|
|
[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" ]
|
|
ignore = [ "E501" ]
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
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
|
|
)/
|
|
'''
|