adze/pyproject.toml

91 lines
2.2 KiB
TOML
Raw Permalink Normal View History

2022-08-18 23:47:26 -07:00
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "adze"
description = "Polyhedron clipping and antialiased voxelization"
readme = "README.md"
license = { file = "LICENSE.md" }
authors = [
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
]
homepage = "https://mpxd.net/code/jan/adze"
repository = "https://mpxd.net/code/jan/adze"
keywords = [
"geometry",
"geometric",
"polyhedron",
"voxel",
"voxelize",
"clip",
"clipping",
"split",
"moment",
"schlegel",
"3D",
"boolean",
]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.11"
2022-08-18 23:47:26 -07:00
dynamic = ["version"]
dependencies = [
"numpy>=1.26",
2022-08-18 23:47:26 -07:00
]
[tool.hatch.version]
path = "adze/__init__.py"
2022-08-19 00:17:57 -07:00
[project.optional-dependencies]
stl = ["stl"]
2026-03-07 06:49:49 -08:00
test = ["pytest", "pytest-benchmark"]
[tool.ruff]
exclude = [
".git",
"dist",
]
line-length = 145
indent-width = 4
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.select = [
"NPY", "E", "F", "W", "B", "ANN", "UP", "SLOT", "SIM", "LOG",
"C4", "ISC", "PIE", "PT", "RET", "TCH", "PTH", "INT",
"ARG", "PL", "R", "TRY",
"G010", "G101", "G201", "G202",
"Q002", "Q003", "Q004",
]
lint.ignore = [
#"ANN001", # No annotation
"ANN002", # *args
"ANN003", # **kwargs
"ANN401", # Any
"SIM108", # single-line if / else assignment
"RET504", # x=y+z; return x
"PIE790", # unnecessary pass
"ISC003", # non-implicit string concatenation
"C408", # dict(x=y) instead of {'x': y}
"PLR09", # Too many xxx
"PLR2004", # magic number
"PLC0414", # import x as x
"TRY003", # Long exception message
]
[[tool.mypy.overrides]]
module = [
"matplotlib",
"mpl_toolkits",
"mpl_toolkits.mplot3d",
"stl",
]
ignore_missing_imports = true