Development guide
We welcome new contribution! Please feel free to open pull-requests and/or issues. If you are not sure what to do, file an issue on GitHub and we can discuss it there.
Contributions do not only have to be in the form of code. We also welcome contributions in the form of documentation, etc.!
Below are some guidelines/rough instructions on how this project is set up. If you have any questions, please raise them!
Configuration
The RIMSSchemeDrawer package is configured to use
rye for the development environment.
If you have rye installed, clone the repo and then run
to get the full development environment setup.
Pre-commit hooks
We use pre-commit hooks in order to ensure
code formatting and linting prior to committing. To install the hooks, run
Note
In order for this to work, you must have pre-commit itself installed.
If you use rye, you can simply install it by running
Testing
We use pytest for testing. To run the tests, simply run
Documentation
Please ensure that all features, etc., are documented.
The documentation is built using mkdocs and mkdocstrings.
To check the documentation locally,
run
and then open your browser at http://localhost:8000.
You should see the documentation there.
Upon a pull-request, the documentation is also created using a readthedocs webhook. You can see the documentation by clicking on the appropriate check in the pull-request.
Formatting and linting
We use ruff for formatting and linting.
You can run ruff directly from rye:
This will run the formatter (first line) and the linter (second line).