-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.05 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v5.0.0"
hooks:
- id: "trailing-whitespace"
- id: "end-of-file-fixer"
- id: "check-case-conflict"
- id: "check-yaml"
- id: "pretty-format-json"
args: [ "--no-sort-keys", "--autofix" ]
- id: "check-shebang-scripts-are-executable"
- id: "check-illegal-windows-names"
- repo: local
hooks:
- id: "ruff"
name: "ruff-check"
entry: "poetry run ruff check --fix"
language: "system"
types: [ "python" ]
- id: "ruff-format"
name: "ruff-format"
entry: "poetry run ruff format"
language: "system"
types: [ "python" ]
- id: "poetry-check"
name: "poetry-check"
entry: "poetry check"
language: "system"
pass_filenames: false
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
- repo: "https://github.com/hukkin/mdformat"
rev: "0.7.22"
hooks:
- id: "mdformat"
additional_dependencies:
- mdformat-gfm
- mdformat-pyproject