Pull request guidelines¶
Pull requests (PRs) are the mechanism for contributing to FastF1s code and documentation.
Detailed guidelines¶
Documentation¶
Every new feature should be documented. If it’s a new module, don’t forget to add a new rst file to the API docs.
Each high-level function should have a small example in the
Examples
section of the docstring. This should be as simple as possible to demonstrate the method. More complex examples should go into a dedicated example file in theexamples
directory, which will be rendered to the examples gallery in the documentation.Build the docs and make sure all formatting warnings are addressed.
See Writing documentation for our documentation style guide.
If your change is a major new feature, update
docs/changelog.rst
.
Automated tests¶
Whenever a pull request is created or updated, various automated test tools will run on all supported versions of Python.
Make sure that all test are passing. (All checks are listed at the bottom of the GitHub page of your pull request)