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
+34-18
Original file line number
Diff line number
Diff line change
@@ -6,50 +6,66 @@ documentation, we greatly value feedback and contributions from our community.
6
6
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7
7
information to effectively respond to your bug report or contribution.
8
8
9
-
10
9
## Reporting Bugs/Feature Requests
11
10
12
-
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
11
+
We welcome you to use the GitHub issue tracker to report bugs, suggest features, or documentation improvements.
13
12
14
13
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
15
-
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
16
-
17
-
* A reproducible test case or series of steps
18
-
* The version of our code being used
19
-
* Any modifications you've made relevant to the bug
20
-
* Anything unusual about your environment or deployment
21
-
14
+
reported the issue. Please try to include as much information as you can.
22
15
23
16
## Contributing via Pull Requests
17
+
24
18
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
25
19
26
-
1. You are working against the latest source on the *master* branch.
27
-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
28
-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
20
+
1. You are working against the latest source on the **develop** branch.
21
+
2. You check existing open, and recently merged pull requests to make sure someone else hasn't addressed the problem already.
22
+
3. You open a [RFC issue](https://github.com/awslabs/aws-lambda-powertools-python/issues/new?assignees=&labels=RFC%2C+triage&template=rfc.md&title=RFC%3A+) to discuss any significant work - we would hate for your time to be wasted.
23
+
24
+
### Dev setup
29
25
30
-
To send us a pull request, please:
26
+
To send us a pull request, please follow these steps:
31
27
32
28
1. Fork the repository.
33
-
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34
-
3. Ensure local tests pass.
29
+
2. Install dependencies in a virtual env with poetry, and pre-commit hooks: `make dev`
30
+
3. Create a new branch to focus on the specific change you are contributing e.g. `improv/logger-debug-sampling`
31
+
4. Run all tests, and code baseline checks: `make pr`
32
+
- Git hooks will run linting and formatting while `make pr` run deep checks that also run in the CI process
35
33
4. Commit to your fork using clear commit messages.
36
-
5. Send us a pull request, answering any default questions in the pull request interface.
34
+
5. Send us a pull request with a [conventional semantic title](https://github.com/awslabs/aws-lambda-powertools-python/pull/67), and answering any default questions in the pull request interface.
37
35
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
38
36
39
37
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40
38
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
41
39
40
+
#### Local documentation
41
+
42
+
You might find useful to run both the documentation website and the API reference locally while contributing:
43
+
44
+
***API reference**: `make docs-api-local`
45
+
***Docs website**: `make dev-docs` to install deps, and `make docs-local` to run it thereafter
**Docstring** | We use a slight variation of numpy convention with markdown to help generate more readable API references.
52
+
**Style guide** | We use black as well as flake8 extensions to enforce beyond good practices [PEP8](https://pep8.org/). We strive to make use of type annotation as much as possible, but don't overdo in creating custom types.
53
+
**Core utilities** | Core utilities use a Class, always accept `service` as a constructor parameter, can work in isolation, and are also available in other languages implementation.
54
+
**Utilities** | Utilities are not as strict as core and focus on solving a developer experience problem while following the project [Tenets](https://awslabs.github.io/aws-lambda-powertools-python/#tenets).
55
+
**Exceptions** | Specific exceptions live within utilities themselves and use `Error` suffix e.g. `MetricUnitError`.
56
+
**Git commits** | We follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). These are not enforced as we squash and merge PRs, but PR titles are enforced during CI.
57
+
**Documentation** | API reference docs are generated from docstrings which should have Examples section to allow developers to have what they need within their own IDE. Documentation website covers the wider usage, tips, and strive to be concise.
42
58
43
59
## Finding contributions to work on
44
-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
45
60
61
+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/help wanted/invalid/question/documentation), looking at any 'help wanted' issues is a great place to start.
46
62
47
63
## Code of Conduct
64
+
48
65
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
49
66
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
0 commit comments