Contributing#
Contributions are welcome!
The repository is hosted at github.com/python-scim/scim2-sqlalchemy.
Discuss#
A feature or a bugfix starts with a discussion on the bugtracker.
Unit tests#
Run uv run pytest before submitting a patch. Run uv run tox to test every supported
Python version. Everything must pass before a patch can be merged.
The tests run on SQLite, on PostgreSQL when its server is installed, and on MariaDB when its server
is installed. They start a temporary PostgreSQL server with
pytest-postgresql, from the pg_ctl command
of the PATH, and a temporary MariaDB server with
pytest-mysql, from the mariadbd command. The
test coverage threshold needs the three databases.
The test coverage threshold is 100%. Check it with
uv run pytest --cov --cov-fail-under=100 --cov-report=html. The report is written to
htmlcov.
Code style#
The project uses ruff and other checks through
prek. Run uv run prek run --all-files before submitting a
patch. Install the hooks with uv run prek install to run them before each commit.
Documentation#
Build every page from scratch, with warnings treated as errors:
$ uv run --group doc sphinx-build -E -W --keep-going --builder html doc build/sphinx/html
The generated documentation is located at build/sphinx/html. The examples of the
documentation run with the unit tests.