-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path.pre-commit-config.yaml
48 lines (42 loc) · 1.37 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
47
48
## Pre-commit setup
ci:
autofix_commit_msg: "style: auto fixes from pre-commit hooks"
repos:
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
args: ["--profile", "black"]
name: Running isort in all files.
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
name: Running black in all files.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
name: Check if python files are valid syntax for the ast parser
- id: check-case-conflict
name: Check for case conflict on file names for case insensitive systems.
- id: check-merge-conflict
name: Check for merge conflict syntax.
- id: check-toml
name: Check TOML files for valid syntax.
- id: check-yaml
name: Check YAML files for valid syntax.
- id: debug-statements
name: Check for debug statements.
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
name: Remove unused imports with autoflake.
args: ["--in-place", "--remove-all-unused-imports"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: Running prettier in non-python files.
types_or: [markdown, yaml, css, json, javascript]