introduce but not enforce .pre-commit-config.yaml

This commit is contained in:
Anthony Wu 2024-09-20 19:06:49 -07:00
parent 77e5a2ef39
commit cb785e49f1

12
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.6
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi]
args: [--fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi]