Skip to content

Commit 632fe52

Browse files
committed
run isort through ruff
1 parent 461b443 commit 632fe52

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/constraints.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pip==22.1.2
2-
nox==2022.1.7
3-
nox-poetry==1.0.0
1+
pip==23.0.1
2+
nox==2022.11.21
3+
nox-poetry==1.0.2
44
poetry==1.4.2
55
virtualenv==20.14.1

pyproject.toml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ typing-extensions = "^4.5.0"
2525
[tool.poetry.group.test.dependencies]
2626
pytest = "^6.2.4"
2727
coverage = {extras = ["toml"], version = "^6.1"}
28+
xdoctest = {extras = ["colors"], version = "*"}
2829

2930
[tool.poetry.group.dev.dependencies]
30-
xdoctest = {extras = ["colors"], version = "*"}
3131
typeguard = "*"
3232
safety = "^2.2.0"
3333
mypy = "*"
@@ -39,18 +39,14 @@ reorder-python-imports = "*"
3939
pre-commit-hooks = "^4.0.1"
4040
Pygments = "^2.9.0"
4141
ruff = "*"
42-
isort = "*"
43-
pydocstyle = "*"
4442
pyupgrade = ">=2.29.1"
45-
myst-parser = {version = ">=0.16.1"}
4643

4744
[tool.poetry.group.docs.dependencies]
48-
49-
[tool.poetry.dev-dependencies]
5045
furo = ">=2021.11.12"
5146
sphinx = ">=4.3.2"
5247
sphinx-autobuild = ">=2021.3.14"
5348
sphinx-click = ">=3.0.2"
49+
myst-parser = {version = ">=0.16.1"}
5450

5551
[tool.poetry.scripts]
5652
arraytex = "arraytex.__main__:main"
@@ -67,11 +63,6 @@ source = ["arraytex", "tests"]
6763
show_missing = true
6864
fail_under = 100
6965

70-
[tool.isort]
71-
profile = "black"
72-
force_single_line = true
73-
lines_after_imports = 2
74-
7566
[tool.mypy]
7667
strict = true
7768
warn_unreachable = true
@@ -112,6 +103,7 @@ select = [
112103
'N',
113104
'S',
114105
'W',
106+
'I001'
115107
]
116108

117109
[tool.ruff.mccabe]
@@ -120,6 +112,10 @@ max-complexity = 10
120112
[tool.ruff.pydocstyle]
121113
convention = 'google'
122114

115+
[tool.ruff.isort]
116+
force-single-line = true
117+
lines-after-imports = 2
118+
123119
[tool.ruff.per-file-ignores]
124120
"__init__.py" = ['F401']
125121
"tests/*" = [

0 commit comments

Comments
 (0)