Skip to content

Commit 935ea44

Browse files
committed
chore: update black config, remove flynt, autopep8
`flynt` is unnecessary, `pyupgrade` can do that. `autopep8` is unnecessary too, `black` replaces it.
1 parent 400b75f commit 935ea44

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.pre-commit-config.yaml

+3-14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
default_language_version:
2+
python: python3.11
13
repos:
24
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
35
rev: v4.5.0
@@ -23,25 +25,12 @@ repos:
2325
args:
2426
- '--remove-all-unused-imports'
2527
- '-i'
26-
language_version: python3.9
27-
- repo: 'https://github.com/pre-commit/mirrors-autopep8'
28-
rev: v2.0.4
29-
hooks:
30-
- id: autopep8
31-
language_version: python3.9
32-
- repo: https://github.com/psf/black
28+
- repo: https://github.com/psf/black-pre-commit-mirror
3329
rev: 23.9.1
3430
hooks:
3531
- id: black
36-
language_version: python3.9
37-
- repo: https://github.com/ikamensh/flynt/
38-
rev: '1.0.1'
39-
hooks:
40-
- id: flynt
41-
language_version: python3.9
4232
- repo: https://github.com/asottile/pyupgrade
4333
rev: v3.15.0
4434
hooks:
4535
- id: pyupgrade
4636
entry: pyupgrade --py3-plus --py36-plus --keep-runtime-typing
47-
language_version: python3.9

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[tool.black]
22
line-length = 120
3-
# required-version = '22.3.0' # see https://github.com/psf/black/issues/2493
4-
target-version = ['py39']
3+
target-version = ["py36", "py37", "py38", "py39", "py310", "py311", "py312"]
54

65
[tool.isort]
76
profile = "black"

0 commit comments

Comments
 (0)