Skip to content

Commit fe2cd2c

Browse files
authored
Add pre-commit
1 parent 344713b commit fe2cd2c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Learn more about this config here: https://pre-commit.com/
2+
3+
# To enable these pre-commit hooks run:
4+
# `pipx install pre-commit` or `brew install pre-commit`
5+
# Then in the project root directory run `pre-commit install`
6+
7+
repos:
8+
- repo: https://github.com/codespell-project/codespell
9+
rev: v2.4.1
10+
hooks:
11+
- id: codespell
12+
args:
13+
- --ignore-words-list=alse,ons
14+
additional_dependencies:
15+
- tomli
16+
17+
- repo: https://github.com/astral-sh/ruff-pre-commit
18+
rev: v0.11.2
19+
hooks:
20+
- id: ruff
21+
- id: ruff-format
22+
23+
- repo: https://github.com/pycqa/flake8
24+
rev: 7.1.2
25+
hooks:
26+
- id: flake8
27+
28+
- repo: https://github.com/tox-dev/pyproject-fmt
29+
rev: v2.5.1
30+
hooks:
31+
- id: pyproject-fmt
32+
33+
- repo: https://github.com/abravalheri/validate-pyproject
34+
rev: v0.24.1
35+
hooks:
36+
- id: validate-pyproject

0 commit comments

Comments
 (0)