Skip to content

Commit d297e33

Browse files
committed
chore: set up initial pre-commit hooks
1 parent cefa1f1 commit d297e33

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ on:
77
pull_request:
88

99
jobs:
10+
lint:
11+
runs-on: ubuntu-slim
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-python@v6
15+
with:
16+
python-version: "3.14"
17+
# Ref: https://github.com/tox-dev/action-pre-commit-uv
18+
- uses: tox-dev/action-pre-commit-uv@246b66536e366bb885f52d61983bf32f7c95e8b1 # 1.0.3
19+
1020
test:
1121
runs-on: ubuntu-latest
1222
strategy:

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# pre-commit
2+
# Ref: https://pre-commit.com/#usage
3+
# ------------------------------------------------------------------------------
4+
5+
default_language_version:
6+
python: '3.14'
7+
8+
repos:
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
11+
hooks:
12+
- id: check-merge-conflict
13+
- id: check-case-conflict
14+
- id: check-ast
15+
- id: debug-statements
16+
- id: check-toml
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
exclude_types: [csv]
20+
- id: trailing-whitespace

0 commit comments

Comments
 (0)