Skip to content

Commit 3f73b0f

Browse files
authored
chore: add CONTRIBUTING.md (#30)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 68c61dd commit 3f73b0f

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Contributing
2+
3+
Contributions are welcome! Whether you're fixing a bug, improving documentation, or adding new features — thank you for taking the time to contribute.
4+
5+
## Table of Contents
6+
7+
- [Code of Conduct](#code-of-conduct)
8+
- [Opening Issues](#opening-issues)
9+
- [Pull Requests](#pull-requests)
10+
- [Local Setup](#local-setup)
11+
- [Running Tests](#running-tests)
12+
- [Running Static Analysis](#running-static-analysis)
13+
- [Deployment and Publishing](#deployment-and-publishing)
14+
15+
## Code of Conduct
16+
17+
Please be respectful and considerate in all interactions. Constructive feedback is welcome; harassment or hostile behavior is not.
18+
19+
## Opening Issues
20+
21+
We appreciate bug reports, feature requests, and general feedback.
22+
23+
- **Bug reports**: Please include a minimal reproducible example and the Python version you're using.
24+
- **Feature requests or larger changes**: Please open an issue **before** starting implementation work. This allows us to discuss the scope and approach, and avoids wasted effort if the direction needs to change.
25+
- **Questions and discussions**: Issues are a good place for these too.
26+
27+
## Pull Requests
28+
29+
Pull requests are welcome! Please keep the following in mind:
30+
31+
- **Scope**: Each pull request should be focused on **one thing only** — one bug fix, one feature, one refactor. Mixed-purpose PRs are harder to review and will likely be asked to be split up.
32+
- **Discuss first**: For any larger refactoring or significant code changes, please open an issue to discuss the matter before submitting a PR.
33+
- **Tests**: Please ensure your changes are covered by tests. Existing tests must continue to pass.
34+
- **Style**: Follow the conventions already established in the codebase.
35+
36+
## Local Setup
37+
38+
**Prerequisites**: Python 3.9 or newer.
39+
40+
1. Clone the repository:
41+
42+
```sh
43+
git clone https://github.com/jkowalleck/rfc3987-syntax2.git
44+
cd rfc3987-syntax2
45+
```
46+
47+
2. Install the package in editable mode together with the development dependencies:
48+
49+
```sh
50+
pip install -e ".[testing]"
51+
```
52+
53+
## Running Tests
54+
55+
Tests are written with [pytest](https://docs.pytest.org/).
56+
57+
```sh
58+
python -m pytest tests
59+
```
60+
61+
## Running Static Analysis
62+
63+
Type checking is done with [mypy](https://mypy.readthedocs.io/).
64+
65+
```sh
66+
python -m mypy -v
67+
```
68+
69+
The mypy configuration is in [`.mypy.ini`](.mypy.ini).
70+
71+
## Deployment and Publishing
72+
73+
Releases are managed by the maintainers. The process is:
74+
75+
1. A maintainer creates a **GitHub Release** (including a version tag).
76+
2. This triggers the [`python-publish`](.github/workflows/python-publish.yml) GitHub Actions workflow, which builds the package and publishes it to [PyPI](https://pypi.org/project/rfc3987-syntax2/) automatically.
77+
78+
Contributors do not need to do anything special for releases.

0 commit comments

Comments
 (0)