Skip to content

Commit 3cf8b9a

Browse files
authored
Standard pre-commit config (#211)
1 parent bcd3669 commit 3cf8b9a

File tree

4 files changed

+530
-658
lines changed

4 files changed

+530
-658
lines changed

.pre-commit-config.yaml

Lines changed: 56 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,57 @@
1+
default_language_version:
2+
python: python3.11
3+
14
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
4-
hooks:
5-
- id: trailing-whitespace
6-
- id: end-of-file-fixer
7-
- id: check-yaml
8-
- id: debug-statements
9-
- id: requirements-txt-fixer
10-
- repo: https://github.com/asottile/reorder_python_imports
11-
rev: v3.8.5
12-
hooks:
13-
- id: reorder-python-imports
14-
args:
15-
- --py37-plus
16-
- --application-directories
17-
- .:example:src
18-
- --add-import
19-
- 'from __future__ import annotations'
20-
- repo: https://github.com/asottile/add-trailing-comma
21-
rev: v2.3.0
22-
hooks:
23-
- id: add-trailing-comma
24-
args: [--py36-plus]
25-
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.1.0
27-
hooks:
28-
- id: pyupgrade
29-
args: [--py37-plus]
30-
- repo: https://github.com/pre-commit/mirrors-autopep8
31-
rev: v1.7.0
32-
hooks:
33-
- id: autopep8
34-
- repo: https://github.com/PyCQA/flake8
35-
rev: 5.0.4
36-
hooks:
37-
- id: flake8
38-
- repo: https://github.com/pre-commit/mirrors-mypy
39-
rev: v0.982
40-
hooks:
41-
- id: mypy
42-
additional_dependencies:
43-
- black==22.12.0
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.4.0
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-case-conflict
10+
- id: check-json
11+
- id: check-merge-conflict
12+
- id: check-symlinks
13+
- id: check-toml
14+
- id: end-of-file-fixer
15+
- id: trailing-whitespace
16+
- repo: https://github.com/asottile/pyupgrade
17+
rev: v3.3.1
18+
hooks:
19+
- id: pyupgrade
20+
args: [--py37-plus]
21+
- repo: https://github.com/psf/black
22+
rev: 22.12.0
23+
hooks:
24+
- id: black
25+
- repo: https://github.com/asottile/blacken-docs
26+
rev: v1.12.1
27+
hooks:
28+
- id: blacken-docs
29+
additional_dependencies:
30+
- black==22.10.0
31+
files: '\.rst$'
32+
- repo: https://github.com/asottile/reorder_python_imports
33+
rev: v3.9.0
34+
hooks:
35+
- id: reorder-python-imports
36+
args:
37+
- --py37-plus
38+
- --application-directories
39+
- .:example:src
40+
- --add-import
41+
- 'from __future__ import annotations'
42+
- repo: https://github.com/PyCQA/flake8
43+
rev: 6.0.0
44+
hooks:
45+
- id: flake8
46+
additional_dependencies:
47+
- flake8-bugbear
48+
- flake8-comprehensions
49+
- flake8-tidy-imports
50+
- flake8-typing-imports
51+
- repo: https://github.com/pre-commit/mirrors-mypy
52+
rev: v0.991
53+
hooks:
54+
- id: mypy
55+
additional_dependencies:
56+
- black==22.12.0
57+
- pytest==7.1.2

0 commit comments

Comments
 (0)