Skip to content

Commit e096289

Browse files
committed
Sandbox: Improve linting / code formatting, remove isort
1 parent 5514ff0 commit e096289

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

pyproject.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,17 @@ omit = [
114114

115115
[tool.poe.tasks]
116116
format = [
117-
{cmd="black ."},
118-
{cmd="isort ."},
117+
{ cmd = "black ." },
118+
# Ignore unused imports (F401), unused variables (F841), `print` statements (T201), and commented-out code (ERA001).
119+
{ cmd = "ruff --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001 ." },
119120
]
120121
lint = [
121-
{cmd="ruff ."},
122-
{cmd="black --check ."},
123-
{cmd="isort --check ."},
124-
{cmd="mypy --install-types --non-interactive"},
122+
{ cmd = "ruff ." },
123+
{ cmd = "black --check ." },
124+
{ cmd = "mypy --install-types --non-interactive" },
125125
]
126126
test = [
127-
{cmd="pytest"},
127+
{ cmd="pytest" },
128128
]
129129
build = {cmd="python -m build"}
130130
check = ["lint", "test"]

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170

171171
# Packages needed for development and running CI.
172172
extras["develop"] = [
173-
"isort<6",
174173
"black<23",
175174
"build<1",
176175
"mypy<1.3",

0 commit comments

Comments
 (0)