-
Dorian Turba authoredDorian Turba authored
Objective
Run Ruff, an extremely fast Python linter, on your Python code. This tool is written in Rust, and it is designed to quickly analyze your Python code to detect various syntax and stylistic errors.
How to use it
- Configure the
pyproject.toml
file in your repository's root directory with your desired rules. - Include the Ruff template in your GitLab CI/CD configuration.
- If you need to customize the job, refer to the jobs customization documentation.
Global Configuration of Ruff
To add configuration to ruff
that is shared with any other usage of Ruff (such as manual run,
pre-commit, etc), you can use a pyproject.toml
configuration file in your project's root
directory. Learn more about ruff configuration files.
Badge to your project README.md
Add a To display the use of Ruff in your project, you can add the following badge to your README.md:
<a href="https://github.com/ruffle-rs/ruffle">
<img alt="Code style: Ruff" src="https://img.shields.io/badge/Ruff-Linter-blue">
</a>