Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.17 KB

develop.md

File metadata and controls

29 lines (20 loc) · 1.17 KB

Development

This project is managed using poetry. You can build and install vembrane using

poetry install

Dependencies

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.

pre-commit hooks

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:

  1. make sure pre-commit is installed on your machine / in your env (should be available in pip, conda, archlinux repos, ...)
  2. 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).