Skip to content

Commit

Permalink
Add more instructions in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Flimm committed Jun 14, 2024
1 parent 6b66c01 commit f1fbe32
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
55 changes: 55 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
[![Jazzband](https://jazzband.co/static/img/jazzband.svg)](https://jazzband.co/)

This is a [Jazzband](https://jazzband.co/) project. By contributing you agree to abide by the [Contributor Code of Conduct](https://jazzband.co/about/conduct) and follow the [guidelines](https://jazzband.co/about/guidelines).

# Setting up

`django-invitations` uses [Poetry] to build and package the project.
We recommend that you use it to manage your virtual environment during development as well.
You can install it using [`pipx`][pipx] like this:

pipx install poetry

Install all dependencies mentioned in `poetry.lock` by running:

poetry install --with=dev

# Translation files

In order to update the Gettext `.po` files with any changed translatable strings, run:

poetry run make po

To compile `.mo` files from the `.po` files, run:

poetry run make mo

# Tests

You can run the tests using [`tox`][tox], like this:

poetry run tox

There are also tests that check for simple coding issues and stylistic issues.
We use a framework (confusingly) named [pre-commit] to check for these issues.
Run it like this:

poetry run pre-commit run --all-files

If you would like to run the pre-commit tests automatically before making a Git commit, modify `.git/hooks/pre-commit`.
You can do this in one step by running:

poetry run pre-commit install

# Documentation

The docs are found under the `docs/` directory. They are in [reStructuredText].
To build the docs into HTML, run:

cd docs
make html

Now open `docs/_build/html/index.html` in your browser.

[Poetry]: https://python-poetry.org/
[pipx]: https://pipx.pypa.io/stable/
[tox]: https://tox.wiki/
[pre-commit]: https://pre-commit.com/
[reStructuredText]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Generic invitations solution with adaptable backend and support for django-allau

As we are members of a [JazzBand project](https://jazzband.co/projects), `django-invitations` contributors should adhere to the [Contributor Code of Conduct](https://jazzband.co/about/conduct).

Get started contributing by reading [CONTRIBUTING.md](CONTRIBUTING.md).

### Documentation

Documentation can be found at https://django-invitations.readthedocs.io/

0 comments on commit f1fbe32

Please sign in to comment.