Skip to content

Commit 23b5450

Browse files
committed
feat(dev-deps): add pre-commit
1 parent 9098712 commit 23b5450

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.pre-commit-config.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-case-conflict
6+
- id: end-of-file-fixer
7+
- id: mixed-line-ending
8+
args: [--fix=lf]
9+
- id: trailing-whitespace
10+
args: [--markdown-linebreak-ext=md]
11+
12+
- repo: https://github.com/pre-commit/pygrep-hooks
13+
rev: v1.9.0
14+
hooks:
15+
- id: python-check-blanket-noqa
16+
- id: python-use-type-annotations
17+
18+
- repo: https://github.com/python-poetry/poetry
19+
rev: '1.2.2'
20+
hooks:
21+
- id: poetry-check
22+
23+
- repo: https://github.com/PyCQA/isort
24+
rev: 5.10.1
25+
hooks:
26+
- id: isort
27+
28+
- repo: https://github.com/psf/black
29+
rev: 22.10.0
30+
hooks:
31+
- id: black
32+
language_version: python3
33+
34+
- repo: https://github.com/charliermarsh/ruff-pre-commit
35+
rev: v0.0.150
36+
hooks:
37+
- id: ruff

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ isort = "^5.10.1"
1616
black = "^22.10.0"
1717
slotscheck = "^0.16.1"
1818
ruff = "^0.0.169"
19+
pre-commit = "^2.20.0"
1920

2021
[build-system]
2122
requires = ["poetry-core"]

0 commit comments

Comments
 (0)