Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (36 loc) · 1.7 KB

CONTRIBUTING.md

File metadata and controls

52 lines (36 loc) · 1.7 KB

Contributing to MiniJinja

Thanks for your interest in contributing to MiniJinja! MiniJinja welcomes contribution from everyone in the form of suggestions, bug reports, pull requests, and feedback. This document gives some guidance if you are thinking of helping out.

Submitting Bug Reports and Feature Requests

When reporting a bug or asking for help, please include enough details so that others helping you can reproduce the behavior you are seeing.

Opening an issue is as easy. Just follow this link and fill out the fields in the appropriate provided template.

When making a feature request, please make it clear what problem you intend to solve with the feature and maybe provide some ideas for how to go about that.

Running the Tests

When you want to contribute directly please make sure to run the tests and format the code before making a pull request. Tests are also run in CI, but it's typically easier to run them locally.

To run all tests a makefile is provided

make test

MiniJinja tests use the Insta testing framework. While not required, it is recommended to use the cargo insta review command to review and verify changes to the test results. This can be automated by using make snapshot-tests.

Formatting the Code

If you want to format the code you can quickly run this command:

make format

Conduct

This issue tracker follows the Rust Code of Conduct. For escalation or moderation issues please contact Armin (armin.ronacher@active-4.com) instead of the Rust moderation team.