Skip to content

Contributing

If you're submitting patches to SourceLab, please observe the following:

  • Check your code with make lint, and format it with make format.
  • Check that your code doesn't break the test suite. The test suite can be run using uvx nox -s tests at the top of the sources, you may use uvx nox -s tests-3.12 to 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-cov will 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 in packages/sourcelab/src/sourcelab/, please make that modification. See docs/README.md for 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.