Skip to content

Commit

Permalink
Generate requirements.txt pre-commit fix (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astus authored Mar 14, 2024
1 parent 8981999 commit 9330831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .snyk/dependency-sync.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 9330831

Please sign in to comment.