Skip to content

Commit

Permalink
Add isort to poe format
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Dec 2, 2022
1 parent 1a7e1db commit 70e54bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ help = "Run tests"
cmd = "mypy src --ignore-missing-imports"
help = "Check types with mypy"

[tool.poe.tasks]
_black = "black . --extend-exclude tests/output_"
_isort = "isort . --extend-skip-glob 'tests/output_*/**/*'"

[tool.poe.tasks.format]
cmd = "black . --exclude tests/output_"
help = "Apply black formatting to source code"
sequence = ["_black", "_isort"]
help = "Apply black and isort formatting to source code"

[tool.poe.tasks.docs]
cmd = "sphinx-build docs docs/build"
Expand Down

0 comments on commit 70e54bb

Please sign in to comment.