blender-python-stubs/pyproject.toml
Joseph HENRY 852a5de700 Initial commit
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 13:00:51 +01:00

60 lines
1.9 KiB
TOML

[project]
name = "blender-python-stubs"
version = "0.1.0"
description = "Type stubs generator for Blender's Python API"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = ["blender", "stubs", "typing", "bpy", "autocomplete"]
authors = [
{ name = "Joseph HENRY" },
{ name = "Autour de Minuit", email = "tech@autourdeminuit.com" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Multimedia :: Graphics :: 3D Modeling",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/autourdeminuit/blender-python-stubs"
Repository = "https://github.com/autourdeminuit/blender-python-stubs"
Issues = "https://github.com/autourdeminuit/blender-python-stubs/issues"
[tool.black]
target-version = ["py311"]
[tool.basedpyright]
typeCheckingMode = "strict"
extraPaths = ["stubs"]
exclude = ["downloads/", ".venv/", "dist/"]
[tool.ruff]
exclude = ["dist/"]
[tool.poe.tasks]
format = { cmd = "black .", help = "Format all Python files" }
lint = { cmd = "ruff check .", help = "Lint all Python files" }
typecheck = { cmd = "basedpyright", help = "Run type checker on source code" }
typecheck-stubs = { cmd = "python -m main --typecheck-stubs", help = "Type-check generated stubs (e.g., poe typecheck-stubs 4.0 4.1)" }
test = { cmd = "python -m unittest discover -s tests -v", help = "Run unit tests" }
[tool.poe.tasks.generate]
cmd = "python -m main"
help = "Generate stubs for Blender versions (e.g., poe generate 5.0 4.3)"
[tool.poe.tasks.check]
help = "Run all checks (format, lint, typecheck, test)"
sequence = ["format", "lint", "typecheck", "test", "typecheck-stubs"]
[dependency-groups]
dev = [
"basedpyright>=1.38.3",
"black>=26.3.1",
"poethepoet>=0.42.1",
"ruff>=0.15.6",
]