[build-system]
requires = ["setuptools>=65.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "delaunay-scripts"
version = "0.4.1"
description = "Python utility scripts for the delaunay Rust library"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "BSD-3-Clause"}
authors = [
{name = "Adam Getchell", email = "adam@adamgetchell.org"},
]
keywords = ["delaunay", "triangulation", "benchmarking", "utilities"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Benchmarking",
]
dependencies = [
"packaging",
]
[project.urls]
"Homepage" = "https://github.com/acgetchell/delaunay"
"Documentation" = "https://docs.rs/delaunay"
"Repository" = "https://github.com/acgetchell/delaunay"
"Bug Tracker" = "https://github.com/acgetchell/delaunay/issues"
[project.scripts]
benchmark-utils = "benchmark_utils:main"
changelog-utils = "changelog_utils:main"
compare-storage-backends = "compare_storage_backends:main"
enhance-commits = "enhance_commits:main"
hardware-utils = "hardware_utils:main"
[tool.setuptools]
package-dir = {"" = "scripts"}
py-modules = ["benchmark_utils", "changelog_utils", "compare_storage_backends", "enhance_commits", "hardware_utils"]
[tool.ruff]
line-length = 150
target-version = "py311"
src = ["scripts"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "YTT", "S", "BLE", "FBT", "B", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "G", "INP", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SLF", "SIM", "TID", "TCH", "ARG", "PTH", "ERA", "PD", "PGH", "PL", "TRY", "NPY", "RUF"]
fixable = ["ALL"]
unfixable = []
ignore = [
"COM812",
"ISC001",
"PLR2004",
"FBT001",
"FBT002",
"BLE001",
"T201",
"TRY300",
"TRY301",
"ARG001",
"ERA001",
"EXE001",
"PTH123",
"N806",
"F841",
"EM102",
"TRY003",
"PLW2901",
]
[tool.ruff.lint.per-file-ignores]
"**/tests/test_*.py" = ["S101"]
[tool.ruff.lint.isort]
known-first-party = ["benchmark_utils", "changelog_utils", "compare_storage_backends", "enhance_commits", "hardware_utils", "subprocess_utils"]
force-single-line = false
split-on-trailing-comma = true
combine-as-imports = true
order-by-type = true
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
minversion = "8.0"
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--color=yes",
]
testpaths = ["scripts/tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.mypy]
python_version = "3.11"
mypy_path = "scripts"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = false
no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = true
show_error_codes = true
show_column_numbers = true
pretty = true
allow_untyped_calls = true
allow_incomplete_defs = true
disallow_any_explicit = false
disallow_any_generics = false
[[tool.mypy.overrides]]
module = [
"packaging.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "scripts.tests.*"
ignore_errors = true
[dependency-groups]
dev = [
"mypy>=1.19.0",
"pytest>=8.0.0",
"ruff>=0.12.11",
]