Skip to content

Commit

Permalink
Update contributing
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jan 14, 2024
1 parent 924a7b6 commit d42b95b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,35 @@ Every open source project lives from the generous help by contributors that sacr
Here are a few guidelines to get you started:

- No contribution is too small; please submit as many fixes for typos and grammar bloopers as you can!

- Try to limit each pull request to one change only.

- To run the test suite, all you need is a recent [Nox](https://nox.thea.codes/).
If you use `pip install -e .[dev]`, it will be installed automatically.

- To run the test suite against all supported Python version, run `nox`.
Our [CI](https://github.com/hynek/doc2dash/actions) runs it the same way.

- To build the docs run `nox -e docs`, to start a local webserver with the docs run `nox -e docs -- serve`.
It will ensure the test suite runs with all dependencies against all Python versions just as it will in our [CI](https://github.com/hynek/doc2dash/actions).

- Make sure your changes pass our CI.
You won't get any feedback until it's green unless you ask for it.

- If your change affects end-users, add an entry to the [changelog](https://github.com/hynek/doc2dash/blob/main/CHANGELOG.md).
Use present tense, semantic newlines, and add link to your pull request.

- Don’t break backwards-compatibility.

- *Always* add tests and docs for your code.
This is a hard rule; patches with missing tests or documentation won’t be merged.

- Write [good test docstrings](https://jml.io/test-docstrings/).

- Obey [PEP 8](https://peps.python.org/pep-0008/) and [PEP 257](https://peps.python.org/pep-0257/).

- To install a development version of *doc2dash* use `pip install -Ue .[dev]`.
We recommend using the Python version from `.python-version-default`.

- We also recommend to install [_pre-commit_](https://pre-commit.com) and running `pre-commit install` to prevent unnecessary CI breakage.

Please note that this project is released with a [Contributor Code of Conduct](https://github.com/hynek/doc2dash/blob/main/.github/CODE_OF_CONDUCT.md).
Expand Down

0 comments on commit d42b95b

Please sign in to comment.