Proper python dev workflow for blender addons
-
Clone this repository
-
Update the project information in
pyproject.toml
andsrc/__init__.py
-
Install PDM for python
pip install pdm
-
Run
pdm install
to get all the dev dependencies -
The following actions are available
pdm build
- creates a zip archive of your addon (requires an existing git tag)pdm test
- runs tests using pytestpdm format
- runs black to fomat your source code (configurable in pyproject.toml)pdm check
- runs mypy for type checking (configurable in pyproject.toml)