Skip to content

Commit 63c0ebb

Browse files
committed
misc: Add a configuration for running pre-commit hooks
1 parent bd933ae commit 63c0ebb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.pre-commit-config.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/pycqa/isort
12+
rev: 5.13.2
13+
hooks:
14+
# Run isort to check only (don't modify files)
15+
- id: isort
16+
args: [ --check-only ]
17+
- repo: https://github.com/astral-sh/ruff-pre-commit
18+
# Ruff version.
19+
rev: v0.14.4
20+
hooks:
21+
# Run the linter to check only (don't modify files)
22+
- id: ruff-check
23+
- repo: https://github.com/crate-ci/typos
24+
rev: v1.39.1
25+
hooks:
26+
- id: typos
27+
args: []
28+
- repo: https://github.com/rhysd/actionlint
29+
rev: v1.7.8
30+
hooks:
31+
- id: actionlint-docker
32+
- repo: https://github.com/hadolint/hadolint
33+
rev: v2.12.0
34+
hooks:
35+
- id: hadolint-docker

0 commit comments

Comments
 (0)