Skip to content

Commit 3565cbe

Browse files
committed
add some precommit hooks
1 parent 25befdc commit 3565cbe

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
6767
- uses: pre-commit/action@v3.0.0
6868
name: pre-commit
6969
env:
70-
SKIP: ruff,ruff-format,ruff-isort
70+
SKIP: ruff,ruff-format,ruff-isort

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: check-merge-conflict
8+
- id: check-toml
9+
- id: end-of-file-fixer
10+
- id: mixed-line-ending
11+
- id: trailing-whitespace
412
# python specific hooks
513
- repo: https://github.com/astral-sh/ruff-pre-commit
614
# Ruff version.
@@ -14,4 +22,4 @@ repos:
1422
name: ruff-isort
1523
args: [--fix, --select=I, --no-cache, --config=./ruff.toml]
1624
- id: ruff-format
17-
args: [--no-cache, --config=./ruff.toml]
25+
args: [--no-cache, --config=./ruff.toml]

0 commit comments

Comments
 (0)