-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (39 loc) · 1.08 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
repos:
- repo: https://github.com/PyCQA/flake8
rev: 7.2.0
hooks:
- id: flake8
name: Style Guide Enforcement (flake8)
args:
- '--max-line-length=90'
- '--per-file-ignores=__init__.py:F401'
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
name: Upgrade syntax for newer versions of the language (pyupgrade)
args:
- '--py39-plus'
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
name: Reorder Python imports
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5 # incompatible with pre-commit > 4.0.0, but should be fixed in the next release
# hooks:
# - id: docformatter
# name: Formats docstrings
# args:
# - '--in-place '
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- repo: https://github.com/python/black
rev: 25.1.0
hooks:
- id: black
name: Uncompromising Code Formatter (black)