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: CONTRIBUTION.md
+5-11Lines changed: 5 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
## Creating a Separate virtualenv
4
4
5
5
Before you contribute on this project you need to create a new separate [virtualenv](https://docs.python.org/3/library/venv.html).
6
+
6
7
Here is one example.
7
8
8
9
```bash
@@ -12,21 +13,15 @@ source .env/bin/activate
12
13
13
14
## Dependencies
14
15
15
-
We have listed all the dependencies in the `requirements.txt` files.
16
+
We have listed all the python dependencies in the `requirements.txt` files.
16
17
17
-
To install dependencies and prepare [`pre-commit`](https://pre-commit.com/) hooks you would need to run `install` command:
18
+
## Pre-commit Hook
18
19
19
-
```bash
20
-
make install
21
-
```
20
+
The config file for [`pre-commit`](https://pre-commit.com/) hooks is in [.pre-commit-config.yaml](./.pre-commit-config.yaml) file. To install pre-commit and enable the hook please refer to [https://pre-commit.com](https://pre-commit.com/)
22
21
23
22
## Codestyle
24
23
25
-
A `.editorconfig` is available to maintain the coding style. You can also use `black` for autoformatting.
26
-
27
-
```bash
28
-
black your-file-to-format.py
29
-
```
24
+
A [.editorconfig](./editorconfig) is available to maintain the coding style. Besides, your code will automatically gets formatted if you have install the pre-commit hook.
30
25
31
26
## Unitest
32
27
@@ -58,7 +53,6 @@ Before submitting your code please do the following steps:
58
53
1. Add tests for the new changes
59
54
1. Update the `CHANGELOG.md` file if necessary
60
55
1. Edit documentation if you have changed something significant
0 commit comments