-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
35 lines (32 loc) · 1.07 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
# See https://pre-commit.com for more information
---
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/codespell-project/codespell
rev: 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
hooks:
- id: codespell
# Additional dependency needed until Python 3.11 is our minimum version.
additional_dependencies:
- tomli
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 52c175db9e13515a6b086cd53ce8a66599eac64b # frozen: v0.7.2
hooks:
- id: ruff
args: [ --fix, --show-fixes, --exit-non-zero-on-fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=10240']
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
# Prevent PP files being inappropriately "fixed".
exclude: ^.+\.pp$
- id: trailing-whitespace