File tree 6 files changed +372
-3
lines changed
6 files changed +372
-3
lines changed Original file line number Diff line number Diff line change
1
+ # How to contribute to pylambdarest
2
+
3
+ Thank you for considering contributing to pylambdarest!
4
+
5
+ ## First time setup
6
+
7
+ - Make sure you have a [ GitHub account] ( https://github.com/join ) .
8
+
9
+ - Fork pylambdarest to your GitHub account by clicking the [ Fork] ( https://github.com/MarwanDebbiche/pylambdarest/fork ) button.
10
+
11
+ - Install [ poetry] ( https://python-poetry.org/ ) .
12
+
13
+ - Install dependecies using poetry:
14
+
15
+ ``` shell
16
+ poetry install
17
+ ```
18
+
19
+ - Install the pre-commit hooks:
20
+
21
+ ``` shell
22
+ poetry run pre-commit install --install-hooks
23
+ ```
24
+
25
+ - Run the tests to make sure you are all set:
26
+
27
+ ``` shell
28
+ poetry run coverage run -m --source=pylambdarest pytest tests && poetry run coverage report -m
29
+ ```
30
+
31
+ ## Building the docs
32
+
33
+ Build the docs in the docs directory using Sphinx:
34
+
35
+ ``` shell
36
+ cd docs
37
+ poetry run make html
38
+ ```
39
+
40
+ Open ` build/html/index.html ` in your browser to view the docs.
41
+
42
+ Read more about [ Sphinx] ( https://www.sphinx-doc.org/en/master/ ) .
43
+
44
+ ## Submitting patches
45
+
46
+ Include the following in your patch:
47
+
48
+ - Use Black to format your code. This and other tools will run automatically if you install pre-commit using the instructions above.
49
+ - Include tests if your patch adds or changes code. Make sure the test fails without your patch.
50
+ - Update the documentation accordingly if needed.
Original file line number Diff line number Diff line change 13
13
import os
14
14
import sys
15
15
16
-
17
16
PROJECT_ROOT_DIR = os .path .dirname (os .path .dirname ((os .path .abspath ("." ))))
18
17
sys .path .insert (0 , PROJECT_ROOT_DIR )
19
18
31
30
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32
31
# ones.
33
32
extensions = [
34
- "m2r2 " ,
33
+ "m2r " ,
35
34
"sphinx.ext.autodoc" ,
36
35
"sphinx.ext.napoleon" ,
37
36
"sphinx_rtd_theme" ,
Original file line number Diff line number Diff line change
1
+ .. mdinclude :: ../../CONTRIBUTING.md
Original file line number Diff line number Diff line change 3
3
:hidden:
4
4
5
5
api_reference
6
+ contributing
7
+
6
8
7
9
.. mdinclude :: ../../README.md
8
10
You can’t perform that action at this time.
0 commit comments