You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-5Lines changed: 24 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,45 @@
1
+
# Contributor Guide
1
2
2
-
Contributor Guide
3
-
=================
3
+
## Prerequisites
4
4
5
-
# Static checks
5
+
Install [Poetry](https://github.com/python-poetry/poetry) by following the [official installation instructions](https://github.com/python-poetry/poetry#installation). Optionally (but recommended), configure Poetry to create a virtual environment in a folder named `.venv` within the root directory of the project:
6
6
7
-
The project uses static checks using fantastic [pre-commit](https://pre-commit.com/). Every change is checked on CI and if it does not pass the tests it cannot be accepted. If you want to check locally then run following command to install pre-commit:
7
+
```bash
8
+
poetry config virtualenvs.in-project true
9
+
```
10
+
11
+
## Setup
12
+
13
+
To create a development environment and install the runtime and development dependencies, run:
8
14
9
15
```bash
10
-
pip install -r requiremenets_dev.txt
16
+
poetry install
11
17
```
12
18
19
+
Then enter the virtual environment created by Poetry:
20
+
21
+
```bash
22
+
poetry shell
23
+
```
24
+
25
+
## Static checks
26
+
27
+
The project uses static checks using fantastic [pre-commit](https://pre-commit.com/). Every change is checked on CI and if it does not pass the tests it cannot be accepted. If you want to check locally then run following command to install pre-commit.
28
+
13
29
To turn on pre-commit checks for commit operations in git, enter:
0 commit comments