-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.27 KB
/
.pre-commit-config.yaml
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
37
38
39
40
41
42
43
44
45
---
repos:
- hooks:
- args:
- '--fix'
id: ruff
- id: ruff-format
files: ^((pypmanager|script|tests)/.+)?[^/]+\.(py|pyi)$
repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.0
- hooks:
- id: requirements-txt-fixer
- id: check-executables-have-shebangs
stages: [manual]
- exclude: (.vscode|.devcontainer)
id: check-json
- args:
- '--branch=main'
id: no-commit-to-branch
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
- hooks:
- args:
- '-d relaxed'
id: yamllint
repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
- hooks:
# Run mypy through our wrapper script in order to get the possible
# pyenv and/or virtualenv activated; it may not have been e.g. if
# committing from a GUI tool that was not launched from an activated
# shell.
- id: prettier
stages: [manual]
repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- hooks:
- entry: script/run-in-env.sh mypy
files: ^(pypmanager|tests)/.+\.py$
id: mypy
language: script
name: mypy
require_serial: true
types: [python]
repo: local