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
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,14 @@ a proposal for your work first, to be sure that we can use it.
36
36
37
37
Poetry is a package manager for Python that allows developers to manage dependencies, create virtual environments, and package their projects for distribution, all using a single command-line tool.
38
38
39
-
Poetry is setup for you in the devcontainer, but should you need to set this up manually you can
39
+
Poetry is setup for you in the devcontainer, but should you need to set this up manually you can
40
40
```sh
41
41
sh ./.devcontainer/postCreate.sh
42
42
```
43
43
44
44
The following manual steps can also be followed to setup poetry:
45
-
- Poetry can be installed using `pip install poetry`.
46
-
- Using `poetry init` poetry creates a `pyproject.toml` file with all the main dependencies required to run the application.
45
+
- Poetry can be installed using `pip install poetry`.
46
+
- Using `poetry init` poetry creates a `pyproject.toml` file with all the main dependencies required to run the application.
47
47
- Executing `poetry install` from the root folder which has the `pyproject.toml` file, installs all the dependencies and creates a virtual environment which is used to run the application. `poetry install` also generates a `poetry.lock` file which locks the dependency versions so that any user who installs the application get the same package version.
48
48
- Executing `pip install .` from the root folder only installs the main dependencies.
49
49
- Dependencies for different environments (dev, test etc.) can be managed by creating groups in the `pyproject.toml` file.
@@ -54,7 +54,7 @@ The following manual steps can also be followed to setup poetry:
54
54
To add a new package execute the below command:
55
55
```shell
56
56
poetry add <package-name>
57
-
```
57
+
```
58
58
To add a package to specific group:
59
59
```shell
60
60
poetry add <package-name> --group <group-name>
@@ -64,9 +64,9 @@ The following manual steps can also be followed to setup poetry:
64
64
65
65
**Note**: In case the pyproject.toml file is manually updated, the following command should be executed to update the `poetry.lock` file.
66
66
67
-
```shell
67
+
```shell
68
68
poetry lock --no-update
69
-
```
69
+
```
70
70
`--no-update` Locks the packages without updating the locked versions.
71
71
72
72
## <aname="submit"></a> Submission Guidelines
@@ -101,7 +101,19 @@ Before you submit your Pull Request (PR) consider the following guidelines:
101
101
* Commit your changes using a descriptive commit message
102
102
* If you are using the devcontainer, committing code will run black and flake8 to lint python code. You can run `black .` or `flake8 .` at anytime.
103
103
* Push your fork to GitHub:
104
-
* In GitHub, create a pull request
104
+
* In GitHub, create a pull request. **Note**: We require PRs to be named following the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. This is where PRs are prefixed according to their type. The available types are:
105
+
* feat: A new feature
106
+
* fix: A bug fix
107
+
* docs: Documentation only changes
108
+
* style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
109
+
* refactor: A code change that neither fixes a bug nor adds a feature
110
+
* perf: A code change that improves performance
111
+
* test: Adding missing tests or correcting existing tests
112
+
* build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
113
+
* ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
114
+
* chore: Other changes that don't modify src or test files
115
+
* revert: Reverts a previous commit
116
+
105
117
* If we suggest changes then:
106
118
* Make the required updates.
107
119
* Rebase your fork and force push to your GitHub repository (this will update your Pull Request):
0 commit comments