Skip to content

Instantly share code, notes, and snippets.

@xcollantes
Last active February 22, 2026 00:22
Show Gist options
  • Select an option

  • Save xcollantes/12df620a7b41663efa91cfe30b5024b1 to your computer and use it in GitHub Desktop.

Select an option

Save xcollantes/12df620a7b41663efa91cfe30b5024b1 to your computer and use it in GitHub Desktop.
.pre-commit.yaml config
# 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