Skip to content

Commit

Permalink
BEHAVIOR: do not remove nbqa.isort table if --imports-on-top
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Sep 23, 2024
1 parent bc00946 commit d75cc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compwa_policy/check_dev_files/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def _remove_isort(
) -> None:
with Executor() as do:
do(__remove_nbqa_option, pyproject, "black")
do(__remove_nbqa_option, pyproject, "isort")
do(__remove_tool_table, pyproject, "isort")
do(vscode.remove_extension_recommendation, "ms-python.isort", unwanted=True)
do(precommit.remove_hook, "isort")
if not imports_on_top:
do(__remove_tool_table, pyproject, "isort")
do(__remove_nbqa_option, pyproject, "isort")
do(precommit.remove_hook, "nbqa-isort")
do(vscode.remove_settings, ["isort.check", "isort.importStrategy"])
do(remove_badge, r".*https://img\.shields\.io/badge/%20imports\-isort")
Expand Down

0 comments on commit d75cc7b

Please sign in to comment.