Skip to content

Commit 167d1ed

Browse files
authored
Cleanup for pre-commit (#21)
1 parent a3f8f6c commit 167d1ed

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
11
# .pre-commit-config.yaml
22
# ========================
33
#
4-
# pre-commit clean
5-
# pre-commit install
6-
# pre-commit install-hooks
7-
#
8-
# precommit hooks installation
9-
#
10-
# - pre-commit autoupdate
11-
#
12-
# - pre-commit run black
13-
#
14-
# continuous integration
15-
# ======================
16-
#
17-
# - pre-commit run --all-files
4+
# Commands:
5+
# uv run pre-commit install
6+
# uv run pre-commit autoupdate
7+
# uv run pre-commit run --all-files
188
#
199
# See https://pre-commit.com for more information
2010
# See https://pre-commit.com/hooks.html for more hooks
2111
repos:
2212
- repo: https://github.com/pre-commit/pre-commit-hooks
23-
rev: v4.5.0
13+
rev: v6.0.0
2414
hooks:
15+
- id: check-added-large-files
16+
- id: check-case-conflict
17+
- id: check-illegal-windows-names
18+
- id: check-merge-conflict
2519
- id: check-yaml
20+
- id: debug-statements
21+
- id: detect-private-key
2622
- id: end-of-file-fixer
2723
- id: forbid-submodules
2824
- id: trailing-whitespace
2925
- repo: https://github.com/pre-commit/mirrors-clang-format
30-
rev: v18.1.2
26+
rev: v21.1.8
3127
hooks:
3228
- id: clang-format
3329
types_or: [c++, c]
@@ -37,11 +33,11 @@ repos:
3733
- id: dockerfilelint
3834
stages: [pre-commit]
3935
- repo: https://github.com/kynan/nbstripout
40-
rev: 0.7.1
36+
rev: 0.9.0
4137
hooks:
4238
- id: nbstripout
4339
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.11.2
40+
rev: v0.14.14
4541
hooks:
4642
- id: ruff
4743
args: [--fix]

DEVELOPMENT.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ uv sync # Install dependencies
1212
uv run pre-commit install # Use pre-commit to install git hooks into the working repository.
1313
```
1414

15-
pre-commit is configured with .pre-commit-config.yaml which contains some
16-
additional documentation.
15+
pre-commit is configured with .pre-commit-config.yaml.
File renamed without changes.

0 commit comments

Comments
 (0)