A template repo holding our common setup for a python project.
You can install the package using pip
pip install -e .
or for development
pip install -e ".[dev]"
The project has the following structure
├── .github
│ └── workflows
│ └── test.yml # holds our github action config
├── .gitignore
├── Makefile
├── README.md
├── setup.py
├── src
│ ├── __init__.py
│ ├── hello.py
└── test
└── test_hello.py
We provide two handy commands inside the Makefile
, namely:
make style
to format the codemake check_code_quality
to check code quality (PEP8 basically)
So far, there is no types checking with mypy. See issue.
pytests
is used to run our tests.
We use GitHub actions to automatically run tests and check code quality when a new PR is done on main
.
This is a template repo, it's meant to be used inside GitHub upon repo creation.
There are several very good templates on GitHub, I prefer to use code we wrote instead of blinding taking the most starred template and having features we don't need. From experience, it's better to keep it simple and general enough for our specific use cases.