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
+8-42Lines changed: 8 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,14 @@ Refer to the [README - Getting Started](../README.md#geting-started) for details
15
15
Some recommendations to help align your contribution and minimise the eventual back and forth on a PR:
16
16
17
17
* Engage in an issue thread or in the discussion section.
18
-
* Actual code in the form of a minimal PR with a `status:do_not_merge` label is a great tool for generating useful dialogue.
18
+
* Actual code in the form of a minimal PR with a `status:do_not_merge` label helps generate useful dialogue.
19
19
20
20
### Which Branch?
21
21
22
22
* If it's a new feature, or bugfix applicable to the latest code, `devel`
23
23
* If it's a bugfix that can't be applied to `devel`, but critical for a release, point it at the release branch (e.g. `release/0.6.x`)
24
24
25
-
If it is a feature or bugfix that you'd like to see backported to one of the release branches, open a parallel PR for that
26
-
release branch or mention that you'd like to see it backported in the original PR's description.
25
+
If it is a feature or bugfix that you'd like to see backported to one of the release branches, open a parallel PR for that release branch or mention that you'd like to see it backported in the original PR's description.
27
26
28
27
### The Pull Request
29
28
@@ -32,45 +31,13 @@ Be sure to state clearly in the pull request's **description** (this helps exped
32
31
* The motivation, i.e. what problem is this solving.
33
32
* A concise summary of what was done (and why if relevant).
34
33
35
-
### Format, Lint, Type-Check and Test
34
+
### Pre-Merge Checks
36
35
37
-
The repository aims to conform to PEP8, please endeavour to do so. CI will get cranky if you don't ;)
36
+
CI get cranky on a variety of things - if it complains, make sure your PR is passing the following checks
37
+
locally.
38
38
39
-
Test against at least one of `py38`, `py310`.
40
-
41
-
```
42
-
# Auto-format your code (if using VSCode, install the ufmt extension)
43
-
$ poetry run tox -e format
44
-
45
-
# Style, Format
46
-
$ poetry run tox -e check
47
-
48
-
# Type-Check
49
-
$ poetry run mypy38
50
-
51
-
# Tests
52
-
$ poetry run tox -e py38
53
-
```
54
-
55
-
### Documentation
56
-
57
-
Documentation is auto-generated as part of the PR process, but if you do wish to make changes and check locally:
58
-
59
-
Generate the docs, view them from `./docs/html` in a browser.
60
-
61
-
```
62
-
# Install dependencies
63
-
$ poetry install --with docs
64
-
65
-
# Build
66
-
$ poetry run make -C docs html
67
-
```
68
-
69
-
On doc dependency changes in `pyproject.toml`, export the requirements for ReadTheDocs.
Once submitted, a reviewer will be assigned. You do not need to select. If no-one has self-assigned in a reasonable time window,
84
-
feel free to append a *friendly bump* comment to your PR.
50
+
Once submitted, a reviewer will be assigned. You do not need to select. If no-one has self-assigned in a reasonable time window, feel free to append a *friendly bump* comment to your PR.
# Auto-format your code (if using VSCode, install the ufmt extension)
12
+
$ poetry run tox -e format
13
+
14
+
# Style, Format
15
+
$ poetry run tox -e check
16
+
17
+
# Type-Check
18
+
$ poetry run mypy38
19
+
20
+
# Tests
21
+
$ poetry run tox -e py38
22
+
```
23
+
24
+
[1] CI will test against both python versions for you, but should you wish to do so locally, open up two VSCode windows, one with the project opened in the default [py38 devcontainer](.devcontainer) and the other with the [py310 devcontainer](.devcontainer/py310).
25
+
26
+
## Documentation
27
+
28
+
Generate the docs, view them from `./docs/html` in a browser.
29
+
30
+
```
31
+
# Install dependencies
32
+
$ poetry install --with docs
33
+
34
+
# Build
35
+
$ poetry run make -C docs html
36
+
```
37
+
38
+
On Doc dependency changes, export the requirements for ReadTheDocs
# Auto-format your code (if using VSCode, install the ufmt extension)
112
-
$ poetry run tox -e format
113
-
114
-
# Style, Format
115
-
$ poetry run tox -e check
116
-
117
-
# Type-Check
118
-
$ poetry run mypy38
119
-
120
-
# Tests
121
-
$ poetry run tox -e py38
122
-
```
123
-
124
-
[1] CI will test against both python versions for you, but should you wish to do so locally, open up two VSCode windows, one with the project opened in the default [py38 devcontainer](.devcontainer) and the other with the [py310 devcontainer](.devcontainer/py310).
125
-
126
-
### Generate Documentation
127
-
128
-
Generate the docs, view them from `./docs/html` in a browser.
129
-
130
-
```
131
-
# Install dependencies
132
-
$ poetry install --with docs
133
-
134
-
# Build
135
-
$ poetry run make -C docs html
136
-
```
137
-
138
-
On Doc dependency changes, export the requirements for ReadTheDocs
0 commit comments