Skip to content

Commit

Permalink
ENH: allow black in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 16, 2024
1 parent 6fd698c commit 32876dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/compwa_policy/check_dev_files/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def _update_dev_requirements(no_ruff: bool) -> None:
"python-lsp-server[rope]",
}
if not no_ruff:
pyproject.remove_dependency("black", ignored_sections=["doc", "test"])
pyproject.remove_dependency(
"black", ignored_sections=["doc", "notebooks", "test"]
)
pyproject.remove_dependency("isort")
pyproject.remove_dependency("jupyterlab-code-formatter")
ruff_packages = {
Expand Down
2 changes: 1 addition & 1 deletion src/compwa_policy/check_dev_files/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _remove_black(
do(
pyproject.remove_dependency,
package="black",
ignored_sections=["doc", "test"],
ignored_sections=["doc", "notebooks", "test"],
)
do(remove_badge, r".*https://github\.com/psf.*/black.*")
do(precommit.remove_hook, "black-jupyter")
Expand Down

0 comments on commit 32876dd

Please sign in to comment.