Skip to content

Commit

Permalink
misc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed May 31, 2024
1 parent ada0d5c commit f660225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject_toml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def _validate_repo_initial_state(
try:
toml_dict["project"]["version"]
except KeyError:
Exception("pyproject.toml must have 'project.version'")
raise Exception("pyproject.toml must have 'project.version'")

@staticmethod
def _tool_setuptools_packages_find(gha_input: GHAInput) -> dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pyproject_toml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ def test_60__has_dunder_version__error(directory: str, requests_mock: Any) -> No
# make an extra package
os.mkdir(f"{directory}/another_one")
with open(f"{directory}/another_one/__init__.py", "w") as f:
f.write(f"__version__ = '4.5.6'\n")
f.write("__version__ = '4.5.6'\n")

# run pyproject_toml_builder
with pytest.raises(
Expand Down

0 comments on commit f660225

Please sign in to comment.