Skip to content

Commit a69b902

Browse files
committed
Add pre-commit configuration
1 parent 5a22480 commit a69b902

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.pre-commit-config.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
exclude: ".venv|__pycache__|tests/dev/|tests/fixtures/"
2+
fail_fast: false
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: check-added-large-files
8+
args: ["--maxkb=500"]
9+
- id: check-ast
10+
- id: check-builtin-literals
11+
- id: check-case-conflict
12+
- id: check-toml
13+
- id: check-yaml
14+
- id: detect-private-key
15+
- id: end-of-file-fixer
16+
- id: fix-byte-order-marker
17+
- id: fix-encoding-pragma
18+
args: [--remove]
19+
- id: name-tests-test
20+
args: [--pytest-test-first]
21+
- id: trailing-whitespace
22+
args: [--markdown-linebreak-ext=md]
23+
24+
- repo: https://github.com/asottile/pyupgrade
25+
rev: v3.10.1
26+
hooks:
27+
- id: pyupgrade
28+
args:
29+
- "--py38-plus"
30+
31+
- repo: https://github.com/astral-sh/ruff-pre-commit
32+
rev: "v0.0.287"
33+
hooks:
34+
- id: ruff
35+
args: ["--fix-only", "--target-version=py38"]
36+
37+
- repo: https://github.com/psf/black
38+
rev: 23.7.0
39+
hooks:
40+
- id: black
41+
args: ["--target-version=py38"]
42+
43+
- repo: https://github.com/pycqa/isort
44+
rev: 5.12.0
45+
hooks:
46+
- id: isort
47+
args: ["--profile", "black", "--filter-files"]
48+
49+
ci:
50+
autoupdate_schedule: quarterly
51+
skip: []
52+
submodules: false

0 commit comments

Comments
 (0)