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
To contribute to the MapSwipe back-end please create dedicated feature branches based on the `dev` branch. After the changes create a Pull Request of the `feature` branch into the `dev` branch on GitHub:
29
+
30
+
```bash
31
+
git checkout dev
32
+
git checkout -b featureA
33
+
# Hack away ...
34
+
git commit -am 'Describe changes.'
35
+
git push -u origin featureA
36
+
# Create a Pull Request from feature branch into the dev branch on GitHub.
37
+
```
38
+
39
+
> Note: If a bug in production (master branch) needs fixing before a new versions of MapSwipe Workers gets released (merging dev into master branch), a hotfix branch should be created. In the hotfix branch the bug should be fixed and then merged with the master branch (and also dev).
40
+
41
+
42
+
### Style Guide
43
+
44
+
This project uses [black](https://github.com/psf/black) and [flake8](https://gitlab.com/pycqa/flake8) to achieve a unified style.
45
+
46
+
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:
47
+
48
+
```
49
+
pre-commit install
50
+
```
51
+
52
+
From now on `black` and `flake8` should run automatically whenever `git commit` is executed.
23
53
24
54
25
55
## License
26
56
27
57
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details
0 commit comments