Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 26, 2024
1 parent 99cf5b4 commit 5bb3e4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sync-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ jobs:
# Read root pyproject.toml
with open("pyproject.toml") as f:
root_data = toml.load(f)
# Read template pyproject.toml
with open("{{cookiecutter.project_slug}}/pyproject.toml") as f:
template_data = toml.load(f)
# Get template dependencies
template_deps = root_data["tool"]["poetry"]["group"]["template"]["dependencies"]
# Update template dependencies
template_data["tool"]["poetry"]["dependencies"].update(template_deps)
# Write back to template pyproject.toml
with open("{{cookiecutter.project_slug}}/pyproject.toml", "w") as f:
toml.dump(template_data, f)
'
# Update lock file
cd {{cookiecutter.project_slug}}
poetry lock --no-update

0 comments on commit 5bb3e4e

Please sign in to comment.