Contributing¶
If you're submitting patches to SourceLab, please observe the following:
- Check your code with
make lint, and format it withmake format. - Check that your code doesn't break the test suite. The test suite can be run using
uvx nox -s testsat the top of the sources, you may useuvx nox -s tests-3.12to run a single version of python. You can also run a single file by calling pytest directly:uv run pytest packages/sourcelab/tests/test_license.py. See Development for more information about the test suite. - If you are adding new code, please write tests for them in
packages/sourcelab/tests/,make test-covwill run the tests and show you the coverage of the code by the unit-tests. - If your change warrants a modification to the docs in
docs/src/or any docstrings inpackages/sourcelab/src/sourcelab/, please make that modification. Seedocs/README.mdfor how to build them.
Note
Have a doubt, an idea you don't know how to implement, or something bugging you? Open an issue on the project.