Skip to content

Commit 1790683

Browse files
committed
refactor: put black config in pyproject.toml
1 parent 33eddfc commit 1790683

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ repos:
1414
rev: "23.3.0"
1515
hooks:
1616
- id: black
17-
args:
18-
- --target-version=py36
19-
- --target-version=py37
20-
- --target-version=py38
21-
- --target-version=py39
22-
- --target-version=py310
23-
- --target-version=py311
2417

2518
# Autoformat: markdown, yaml
2619
- repo: https://github.com/pre-commit/mirrors-prettier

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55

6+
# black is used for autoformatting Python code
7+
#
8+
# ref: https://black.readthedocs.io/en/stable/
9+
#
10+
[tool.black]
11+
target_version = [
12+
"py37",
13+
"py38",
14+
"py39",
15+
"py310",
16+
"py311",
17+
]
18+
19+
620
# pytest is used for running Python based tests
721
#
822
# ref: https://docs.pytest.org/en/stable/

0 commit comments

Comments
 (0)