Skip to content

Commit

Permalink
Sandbox: Improve linting / code formatting, remove isort
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 14, 2023
1 parent 5514ff0 commit e096289
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ omit = [

[tool.poe.tasks]
format = [
{cmd="black ."},
{cmd="isort ."},
{ cmd = "black ." },
# Ignore unused imports (F401), unused variables (F841), `print` statements (T201), and commented-out code (ERA001).
{ cmd = "ruff --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001 ." },
]
lint = [
{cmd="ruff ."},
{cmd="black --check ."},
{cmd="isort --check ."},
{cmd="mypy --install-types --non-interactive"},
{ cmd = "ruff ." },
{ cmd = "black --check ." },
{ cmd = "mypy --install-types --non-interactive" },
]
test = [
{cmd="pytest"},
{ cmd="pytest" },
]
build = {cmd="python -m build"}
check = ["lint", "test"]
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@

# Packages needed for development and running CI.
extras["develop"] = [
"isort<6",
"black<23",
"build<1",
"mypy<1.3",
Expand Down

0 comments on commit e096289

Please sign in to comment.