Skip to content

Commit f76e9c2

Browse files
committed
chore(pyproject): install isort with dev dependencies
configure isort to use the black profile, with some overrides from the Django profile and match our common line-length
1 parent dbc1e5f commit f76e9c2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dev = [
3232
"black",
3333
"djlint",
3434
"flake8",
35+
"isort",
3536
"pre-commit",
3637
"setuptools_scm>=8"
3738
]
@@ -77,6 +78,12 @@ profile = "django"
7778
preserve_blank_lines = true
7879
use_gitignore = true
7980

81+
[tool.isort]
82+
profile = "black"
83+
combine_as_imports = true
84+
line_length = 127
85+
skip_gitignore = true
86+
8087
[tool.pyright]
8188
include = ["benefits", "tests/pytest"]
8289
typeCheckingMode = "off"

0 commit comments

Comments
 (0)