Skip to content

Commit 72356d5

Browse files
committed
pre commit hooks added
1 parent 1898f78 commit 72356d5

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.devcontainer/postStartCommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
uv sync --all-groups --all-extras
55

66
# install pre-commit hooks
7-
# uv run pre-commit install --install-hooks
7+
uv run pre-commit install --install-hooks

.pre-commit-config.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
default_language_version:
2+
python: python3
3+
4+
default_stages: [pre-commit, pre-push]
5+
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v5.0.0
9+
hooks:
10+
- id: check-added-large-files
11+
args: ["--maxkb=1024"]
12+
- id: check-case-conflict
13+
- id: check-merge-conflict
14+
- id: check-symlinks
15+
- id: check-toml
16+
- id: destroyed-symlinks
17+
- id: end-of-file-fixer
18+
- id: forbid-submodules
19+
- id: no-commit-to-branch
20+
args: ['--pattern', '[^a-zA-Z0-9_\/-]']
21+
- id: trailing-whitespace
22+
23+
- repo: https://github.com/charliermarsh/ruff-pre-commit
24+
rev: v0.11.7
25+
hooks:
26+
- id: ruff
27+
# Run the Ruff formatter.
28+
- id: ruff-format
29+
args: [--check]
30+
31+
- repo: https://github.com/astral-sh/uv-pre-commit
32+
# uv version.
33+
rev: 0.7.7
34+
hooks:
35+
- id: uv-lock

0 commit comments

Comments
 (0)