Last active
April 21, 2024 14:32
-
-
Save FrancisZhuang/52f6879eedd4f54b85d22e21fbe7ca23 to your computer and use it in GitHub Desktop.
pre-commit
This file contains 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
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