From 5f03aeeb70283d47898d528a6370d38ac3dd211b Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Thu, 25 Mar 2021 14:07:36 +0100 Subject: [PATCH] Add CONTRIBUTING.md file --- CONTRIBUTING.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..28045f363 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,33 @@ +# How to contribute + +## Preparing the development environment + +Make sure you have development dependencies installed in your development environment. + +``` +pip install -r requirements-dev.txt +``` + +We use `pre-commit` to maintain and install pre-commit hooks that should be executed +before each commit. Use the following commands to install the hooks + +``` +pre-commit install +``` + +Running the pre-commit for the first time usually takes a little longer because `pre-commit` +pulls some of it's hooks from upstream repositories. + + +## Adding dependencies + +Make sure you update our `requirements.txt` file before you push your changes. +Whenever you need a new python package, add it to requirements.in and run + +`pip-compile` + +to generate an new `requirements.txt` which does not only pin the new package +but also its dependencies. + +If the new package you are adding is only used by developers, +please add it to the `requirements-dev.txt` file. -- GitLab