This is a python template project managed using poetry.
Features:
- pybind11 powered C++ extension(built with scikit-build-core)
- pytest.
- pre-commit hooks with isort, black, clang-format, etc.
Install pre-commit hooks on your first clone.
pre-commit installYou only need to run it once.
Run poetry build and everything's done.
- C++ extension will be built and copied into source tree.
- Mypy will generate
*.pyifiles for C++ extension in source tree. - All python files and C++ libraries will be packaged as a
.whlfile.
Run poetry install --with dev to install all development dependencies.
Running pytest tests is enough. Everything will be automatically discoverable in IDE.