-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.pre-commit-config.yaml
46 lines (46 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
46
---
# For more information see
# https://pre-commit.com/index.html#install
# https://pre-commit.com/index.html#automatically-enabling-pre-commit-on-repositories
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.1.0
hooks:
- id: check-ast
- id: check-docstring-first
- id: check-toml
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
args:
- "--markdown-linebreak-ext=md"
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "23.9.1"
hooks:
- id: black
- repo: "https://github.com/pre-commit/mirrors-prettier"
rev: v2.6.2
hooks:
- id: prettier
exclude_types:
- "python"
additional_dependencies:
- "prettier"
- repo: "https://github.com/asottile/pyupgrade"
rev: v2.31.0
hooks:
- id: pyupgrade
args:
- "--py36-plus"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.5"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]