Skip to content

Commit da1093d

Browse files
committed
Add .pre-commit-config.yaml
Signed-off-by: Joe Block <[email protected]>
1 parent 77d03a3 commit da1093d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.pre-commit-config.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
# See https://pre-commit.com for more information
3+
# See https://pre-commit.com/hooks.html for more hooks
4+
ci:
5+
skip:
6+
- poetry-lock
7+
repos:
8+
- repo: local
9+
hooks:
10+
- id: clean-up-pyc-and-pyo-files
11+
name: Scrub all .pyc and .pyo files before committing
12+
entry: ./.hook-scripts/clean-up-pyc-and-pyo-files
13+
language: script
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v5.0.0
16+
hooks:
17+
- id: check-added-large-files
18+
- id: check-docstring-first
19+
- id: check-executables-have-shebangs
20+
- id: check-merge-conflict
21+
- id: check-shebang-scripts-are-executable
22+
- id: check-symlinks
23+
- id: debug-statements
24+
- id: end-of-file-fixer
25+
- id: trailing-whitespace
26+
- repo: https://github.com/astral-sh/ruff-pre-commit
27+
# Ruff version.
28+
rev: v0.11.0
29+
hooks:
30+
# Run the linter.
31+
- id: ruff
32+
args:
33+
- "--fix"
34+
# Run the formatter.
35+
- id: ruff-format
36+
- repo: https://github.com/thlorenz/doctoc
37+
rev: v2.2.0
38+
hooks:
39+
- id: doctoc
40+
- repo: https://github.com/python-poetry/poetry
41+
rev: 2.1.1
42+
hooks:
43+
- id: poetry-check
44+
- id: poetry-lock

0 commit comments

Comments
 (0)