Skip to content

Commit

Permalink
Moved requirements to snyk directory (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astus authored Mar 20, 2024
1 parent 381ff2a commit 66d84e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ repos:
- id: dependencies-sync
name: "Copy dependencies from pyproject.toml to requirements.txt"
language: system
entry: python .snyk/dependency-sync.py
entry: python snyk/dependency-sync.py
files: ^pyproject.toml$
2 changes: 1 addition & 1 deletion .snyk/dependency-sync.py → snyk/dependency-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def sync():
pyproject = tomlkit.loads(Path("pyproject.toml").read_text())
dependencies = pyproject["project"]["dependencies"]
dev_dependencies = pyproject["project"]["optional-dependencies"]["development"]
with open(".snyk/requirements.txt", "w") as req:
with open("snyk/requirements.txt", "w") as req:
req.write("# Auto generated\n")
for dep in dependencies:
req.write(f"{dep}\n")
Expand Down
File renamed without changes.

0 comments on commit 66d84e6

Please sign in to comment.