Skip to content

Commit

Permalink
FIX: do not load pyproject.toml if non-existent
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 15, 2024
1 parent 75024bc commit b17f16e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compwa_policy/check_dev_files/uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def _remove_pip_constraint_files() -> None:


def _remove_uv_configuration() -> None:
if not CONFIG_PATH.pyproject.exists():
return
readonly_pyproject = Pyproject.load()._document # noqa: SLF001
if "tool" not in readonly_pyproject:
return
Expand Down

0 comments on commit b17f16e

Please sign in to comment.