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 Oct 15, 2024
1 parent 6377f2f commit 483c4ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/tools/gen_requirements_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
from __future__ import annotations

import sys
import tomllib
from typing import Any

import tomllib


def gen_requirements_txt(pyproject_cfg: dict[str, Any]) -> str:
_res: list[str] = [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gen_requirements_txt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
if git diff --exit-code requirements.txt; then
echo "skip commit as requirements.txt is not changed"
else
Expand All @@ -45,4 +45,4 @@ jobs:
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ simple-sqlite3-orm<0.3,>=0.2
typing-extensions>=4.6.3
urllib3<2.3,>=2.2.2
uvicorn[standard]<0.31,>=0.30
zstandard<0.24,>=0.22
zstandard<0.24,>=0.22

0 comments on commit 483c4ad

Please sign in to comment.