-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
.pre-commit-config.yaml
37 lines (33 loc) · 1.04 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
# Install pre-commit hooks via
# pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # 23.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 50c5478ed9e10bf360335449280cf2a67f4edb7a # v2.7.1
hooks:
- id: prettier
files: \.(css|html|md|yml|yaml)
args: [--prose-wrap=preserve]
- repo: https://github.com/asottile/pyupgrade
rev: aa5af9cd273894d0246e0eb9fa5ad557037481dc # v3.7.0
hooks:
- id: pyupgrade
args: [--py38-plus]