-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (36 loc) · 919 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
36 lines (36 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
repos:
- hooks:
- id: ruff
args:
- --fix
- id: ruff-format
files: ^((pygleif|tests|examples)/.+)?[^/]+\.(py|pyi)$
repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.15.21
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: requirements-txt-fixer
- id: check-ast
- id: check-executables-have-shebangs
stages: [manual]
- id: check-json
exclude: (.vscode|.devcontainer)
- id: no-commit-to-branch
args:
- --branch=main
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.27.0
hooks:
- id: zizmor
- repo: local
hooks:
- id: ty
name: ty
entry: >
./.devcontainer/run-in-env.sh ty check
language: script
types: [python]
require_serial: true
files: ^pygleif/.+\.py$