Skip to content

Commit

Permalink
FIX: do not update Jupyter if not package
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 8, 2024
1 parent 5aa309b commit 5151110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/repoma/check_dev_files/jupyter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Update the developer setup when using Jupyter notebooks."""

from repoma.utilities.executor import Executor
from repoma.utilities.project_info import get_supported_python_versions
from repoma.utilities.project_info import get_supported_python_versions, is_package
from repoma.utilities.pyproject import add_dependency


Expand All @@ -10,6 +10,8 @@ def main() -> None:


def _update_dev_requirements() -> None:
if not is_package():
return

Check warning on line 14 in src/repoma/check_dev_files/jupyter.py

View check run for this annotation

Codecov / codecov/patch

src/repoma/check_dev_files/jupyter.py#L14

Added line #L14 was not covered by tests
if "3.6" in get_supported_python_versions():
return
hierarchy = ["jupyter", "dev"]
Expand Down

0 comments on commit 5151110

Please sign in to comment.