Last active
February 22, 2026 00:22
-
-
Save xcollantes/12df620a7b41663efa91cfe30b5024b1 to your computer and use it in GitHub Desktop.
.pre-commit.yaml config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See https://pre-commit.com for more information. | |
| # Filename: Must be named .pre-commit-config.yaml | |
| # Install pre-commit file with: `pre-commit install` | |
| repos: | |
| # Must have `pip install ruff pre-commit` installed. | |
| - repo: https://github.com/astral-sh/ruff-pre-commit | |
| rev: v0.9.2 | |
| hooks: | |
| # Run the linter. | |
| - id: ruff | |
| args: [--fix] | |
| # Run the formatter. | |
| - id: ruff-format | |
| # Must have `pip install pytest` installed. | |
| - repo: local | |
| hooks: | |
| # Run pytest. | |
| - id: pytest | |
| name: pytest | |
| entry: uv run --frozen python -m pytest | |
| language: system | |
| pass_filenames: false | |
| always_run: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment