Skip to content

Instantly share code, notes, and snippets.

@FrancisZhuang
Last active April 21, 2024 14:32
Show Gist options
  • Save FrancisZhuang/52f6879eedd4f54b85d22e21fbe7ca23 to your computer and use it in GitHub Desktop.
Save FrancisZhuang/52f6879eedd4f54b85d22e21fbe7ca23 to your computer and use it in GitHub Desktop.
pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
- id: pytest
name: pytest
entry: ./.venv/bin/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