Skip to content

Commit a3d572f

Browse files
committed
Add .pre-commit-config.yaml
Signed-off-by: Yu Ishikawa <[email protected]>
1 parent 7186bf4 commit a3d572f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.pre-commit-config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
4+
default_language_version:
5+
python: python3
6+
7+
repos:
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
10+
hooks:
11+
- id: check-added-large-files
12+
- id: check-toml
13+
- id: check-yaml
14+
- id: end-of-file-fixer
15+
- id: trailing-whitespace
16+
- repo: https://github.com/rhysd/actionlint
17+
rev: v1.7.3
18+
hooks:
19+
- id: actionlint
20+
- repo: https://github.com/pycqa/isort
21+
# rev must match what's in dev-requirements.txt
22+
rev: 5.13.2
23+
hooks:
24+
- id: isort
25+
# - repo: https://github.com/PyCQA/bandit
26+
# rev: 1.7.10
27+
# hooks:
28+
# - id: bandit
29+
# args: [
30+
# "-c", "pyproject.toml",
31+
# ]
32+
# - repo: https://github.com/astral-sh/ruff-pre-commit
33+
# rev: v0.7.1
34+
# hooks:
35+
# - id: ruff
36+
# args:
37+
# - --fix
38+
# - id: ruff-format
39+
# - repo: https://github.com/PyCQA/autoflake
40+
# rev: v2.3.1
41+
# hooks:
42+
# - id: autoflake
43+
# args:
44+
# - --in-place
45+
# - --remove-all-unused-imports
46+
# - --remove-unused-variables

0 commit comments

Comments
 (0)