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
Create a Python virtual environment and activate it. Install MapSwipe Workers using pip:
16
+
17
+
```bash
18
+
python -m venv venv
19
+
source venv/bin/activate
20
+
pip install --editable .
21
+
```
22
+
23
+
24
+
## Feature Branch
25
+
26
+
To contribute to the MapSwipe back-end please create dedicated feature branches:
6
27
7
28
```bash
8
29
git checkout -b featureA
9
30
git commit -am 'add new project type'
10
31
git push -u origin featureA
11
32
git request-pull origin/master featureA
12
33
```
34
+
35
+
36
+
## Style Guide
37
+
38
+
This project uses [black](https://github.com/psf/black) and [flake8](https://gitlab.com/pycqa/flake8) to achieve a unified style.
39
+
40
+
Use [pre-commit](https://pre-commit.com/) to run `black` and `flake8` prior to any git commit. `pre-commit`, `black` and `flake8` should already be installed in your virtual environment since they are listed in `requirements.txt`. To setup pre-commit simply run:
41
+
42
+
```
43
+
pre-commit install
44
+
```
45
+
46
+
From now on `black` and `flake8` should run automatically whenever `git commit` is executed.
0 commit comments