This project is managed using poetry. You can build and install vembrane using
poetry install
All packages that vembrane relies on can be found in the [tool.poetry.dependencies]
section of pyproject.toml
.
The exact environment is usually locked (see poetry.lock
for details).
To see the dependencies in the requirements.txt
format, type in the root directory
poetry export --without-hashes
Poetry uses virtualenvs
internally.
Often it is convinient to start a poetry shell
where all environment variables are set.
Since we enforce code formatting with black
by checking for that in CI, we can avoid "fmt" commits by ensuring formatting is done upon comitting changes:
- make sure
pre-commit
is installed on your machine / in your env (should be available in pip, conda, archlinux repos, ...) - run
pre-commit install
. This will activate pre-commit hooks to your local .git
Now when calling git commit
, your changed code will be formatted with black
and isort
, checked withflake8
, get trailing whitespace removed and trailing newlines added (if needed).