From f1149194a186378fbecac2f7407d28ef71fee3c7 Mon Sep 17 00:00:00 2001 From: Adam Stus Date: Thu, 14 Mar 2024 17:37:53 +0100 Subject: [PATCH] Generate requirements.txt pre-commit fix --- .github/workflows/lint.yaml | 2 +- .snyk/dependency-sync.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 097a0e2bb7..6906b9b55b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,6 +27,6 @@ jobs: with: python-version: '3.x' - name: Install pre-commit - run: python -m pip install pre-commit + run: python -m pip install pre-commit tomlkit - name: Run pre-commit run: pre-commit run --all-files diff --git a/.snyk/dependency-sync.py b/.snyk/dependency-sync.py index 670975dd9f..01622260bc 100644 --- a/.snyk/dependency-sync.py +++ b/.snyk/dependency-sync.py @@ -1,10 +1,10 @@ from pathlib import Path -import tomllib +import tomlkit def sync(): - pyproject = tomllib.loads(Path("pyproject.toml").read_text()) + pyproject = tomlkit.loads(Path("pyproject.toml").read_text()) dependencies = pyproject["project"]["dependencies"] dev_dependencies = pyproject["project"]["optional-dependencies"]["development"] with open(".snyk/req-auto-generated.txt", "w") as req: