Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.28 KB

File metadata and controls

51 lines (34 loc) · 1.28 KB

Contributing to Rich Tools

This project welcomes contributions in the form of Pull Requests. For clear bug-fixes / typos etc. just submit a PR. For new features or if there is any doubt in how to fix a bug, you might want to open an issue prior to starting work.

Development Environment

Rich Tools uses poetry for packaging and dependency management. To start developing with Rich Tools, install Poetry using the recommended method or run:

pip install poetry

Once Poetry is installed, install the dependencies with the following command:

poetry install

Tests

Run tests with the following command:

poetry run pytest

New code should ideally have tests and not break existing tests.

If you are not familiar with writing tests but still want to contribute to this package, please feel free to submit your pull request, and I will work on tests. 🙂

Type Checking

Please add type annotations for all new code.

Code Formatting

Rich Tools uses Ruff for code formatting. I recommend setting up Ruff in your editor to format on save.

To run Ruff from the command line:

poetry run ruff check
poetry run ruff format