Skip to content

Commit 9e3daca

Browse files
committed
Add autoflake/isort/black config in pyproject.toml
1 parent 8ad2c00 commit 9e3daca

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pyproject.toml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# autoflake is used for autoformatting Python code
2+
#
3+
# ref: https://github.com/PyCQA/autoflake#readme
4+
#
5+
[tool.autoflake]
6+
ignore-init-module-imports = true
7+
remove-all-unused-imports = true
8+
remove-duplicate-keys = true
9+
remove-unused-variables = true
10+
11+
12+
# isort is used for autoformatting Python code
13+
#
14+
# ref: https://pycqa.github.io/isort/
15+
#
16+
[tool.isort]
17+
profile = "black"
18+
19+
20+
# black is used for autoformatting Python code
21+
#
22+
# ref: https://black.readthedocs.io/en/stable/
23+
#
24+
[tool.black]
25+
skip-string-normalization = true
26+
# target-version should be all supported versions, see
27+
# https://github.com/psf/black/issues/751#issuecomment-473066811
28+
target_version = [
29+
"py36",
30+
"py37",
31+
"py38",
32+
"py39",
33+
"py310",
34+
"py311",
35+
]

0 commit comments

Comments
 (0)