forked from wemake-services/django-modern-rest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
92 lines (80 loc) · 2.77 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
92 lines (80 loc) · 2.77 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: c4654a7e007c9619a5eb63c39a456572a0fa1851 # frozen: 0.38.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-github-actions
- id: check-github-issue-config
- id: check-github-issue-forms
- id: check-readthedocs
- id: check-compose-spec
- repo: https://github.com/rhysd/actionlint
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
hooks:
- id: actionlint
additional_dependencies:
- "github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest"
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: 451b56af716f9f0d0c2b816503a3fd0cf8b036fa # frozen: v1.29.0
hooks:
- id: zizmor
args: ["--no-progress", "--fix"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: a6564f5d57444e123433a5c9af733e3975c77229 # frozen: v0.11.0.1-1
hooks:
- id: shellcheck
args: ["--severity=style"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "cc0b0f8d4107cfe80d6571644e639b05aee29128" # frozen: v2.28.1
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: aab412d509121cb5f7533134b7e67f9fab59c682 # frozen: v0.16.4
hooks:
- id: ruff-check
args: ["--exit-non-zero-on-fix"]
- id: ruff-format
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: c883505f64b59c3c5c9375191e4ad9f98e727ccd # frozen: v1.0.2
hooks:
- id: sphinx-lint
args: ["--enable=all", "--disable=line-too-long"]
files: ^docs/
- repo: https://github.com/crate-ci/typos
rev: 12ffd4a04b4893ab75db66a59aaad2d996c3e982 # frozen: v1
hooks:
- id: typos
- repo: https://github.com/codespell-project/codespell
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
hooks:
- id: codespell
args: ["--write-changes"]
- repo: https://github.com/instrumentl/pre-commit-just
rev: 0340ee8d7f8341d6b9b03e086ab937f7fa38134c # frozen: v0.2
hooks:
- id: format-justfile
# Should be applied after all autofixes:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: \.msgpack$
- id: check-yaml
- id: check-toml
- id: check-xml
- id: check-merge-conflict
- id: check-symlinks
- id: check-illegal-windows-names
- id: mixed-line-ending
args: ["--fix=lf"]
- id: check-case-conflict
# Should be the last:
- repo: meta
hooks:
- id: check-useless-excludes
ci:
autofix_prs: true
autoupdate_schedule: weekly
submodules: false