This repository serves as a template with configuration files for common python tools,
including poetry, pre-commit, black, isort, etc.
Recommend to use Miniconda to create a virtual environment:
$ conda create --name foundation python=3.9
# Answer yes to the prompt
$ conda activate foundationWhenever you work on this you can activate the environment again using:
$ conda activate foundationThe project is set up using the poetry dependency management tool.
For Linux, macOS, and Windows (WSL):
$ curl -sSL https://install.python-poetry.org | python3 -An alternative way for macOS is:
$ brew install poetry$ poetry install
# Initialize pre-commit hooks
$ pre-commit installRun test cases with:
$ pytest -n 8Collect some useful code snippets from following repositories with nicely modification: