-
Notifications
You must be signed in to change notification settings - Fork 28
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.23 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
46
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
exclude: ^tests/unit/data/
- id: fix-byte-order-marker
exclude: ^tests/unit/data/
- id: mixed-line-ending
args: ["--fix", "lf"]
exclude: ^tests/unit/data/
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: ^tests/unit/data/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
require_serial: true
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
exclude: ^docs/source/_templates/
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/crate-ci/typos
rev: v1.23.5
hooks:
- id: typos
args: ["--force-exclude"]