Skip to content

LinHeLurking/python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Template Project

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.

First Clone

Install pre-commit hooks on your first clone.

pre-commit install

You only need to run it once.

Build from Source

Run poetry build and everything's done.

  • C++ extension will be built and copied into source tree.
  • Mypy will generate *.pyi files for C++ extension in source tree.
  • All python files and C++ libraries will be packaged as a .whl file.

Development

Run poetry install --with dev to install all development dependencies.

Run Tests

Running pytest tests is enough. Everything will be automatically discoverable in IDE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published