diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 121f5fe805..259a501a8e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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$ diff --git a/.snyk/dependency-sync.py b/snyk/dependency-sync.py similarity index 90% rename from .snyk/dependency-sync.py rename to snyk/dependency-sync.py index bb04965553..53254bd7b3 100644 --- a/.snyk/dependency-sync.py +++ b/snyk/dependency-sync.py @@ -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") diff --git a/.snyk/requirements.txt b/snyk/requirements.txt similarity index 100% rename from .snyk/requirements.txt rename to snyk/requirements.txt