-
Notifications
You must be signed in to change notification settings - Fork 42
/
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
---
default_install_hook_types: [pre-commit]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
args: [--unsafe]
- id: check-toml
- id: check-json
- id: check-xml
- id: requirements-txt-fixer
# - id: trailing-whitespace # TODO: enable
# - id: end-of-file-fixer # TODO: enable
- id: check-case-conflict
- id: check-merge-conflict
- id: forbid-submodules
# TODO: enable these hooks
# - repo: https://github.com/Lucas-C/pre-commit-hooks
# rev: v1.5.5
# hooks:
# - id: remove-tabs
# - id: forbid-tabs
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0
hooks:
- id: check-github-workflows
args: [--verbose]
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
hooks:
- id: ruff
# args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
args: [--check, --diff]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--check, --diff]