Skip to content

Commit 5fd0fd8

Browse files
moved isort settings from tox.ini file to pyproject.toml
1 parent 9aa1a7f commit 5fd0fd8

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

py/pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
[build-system]
22
requires = ["setuptools", "setuptools-rust"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.isort]
6+
# isort is a common python tool for keeping imports nicely formatted.
7+
# Automatically keep imports alphabetically sorted, on single lines in
8+
# PEP recommended sections (https://peps.python.org/pep-0008/#imports)
9+
# files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
10+
profile = "black"
11+
py_version=38
12+
force_single_line = true

py/tox.ini

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ deps =
2525
trio-typing==0.7.0
2626
commands = mypy --install-types {posargs}
2727

28-
29-
[isort]
30-
; isort is a common python tool for keeping imports nicely formatted.
31-
; Automatically keep imports alphabetically sorted, on single lines in
32-
; PEP recommended sections (https://peps.python.org/pep-0008/#imports)
33-
; files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
34-
profile = black
35-
py_version=38
36-
force_single_line = True
37-
38-
3928
[testenv:linting-ci]
4029
; checks linting for CI with stricter exiting when failing.
4130
skip_install = true

0 commit comments

Comments
 (0)