Skip to content

Commit

Permalink
Merge pull request #4651 from dev-hato/massongit-patch-1_3
Browse files Browse the repository at this point in the history
uv lockを使ってsudden-deathをアップデートする
  • Loading branch information
massongit authored Jan 9, 2025
2 parents eb472f5 + e814abe commit 2935fe7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 30 deletions.
29 changes: 4 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,7 @@ name = "hato-bot"
version = "3.0.5"
description = "愛嬌のあるBot"
requires-python = "==3.13.1"
dependencies = [
"python-dotenv==1.0.1",
"requests==2.32.3",
"Pillow>=7.1.2",
"opencv-python==4.10.0.84",
"slack-bolt==1.22.0",
"slack-sdk==3.34.0",
"gitpython==3.1.44",
"pandas==2.2.3",
"matplotlib==3.10.0",
"openai==1.59.5",
"discord.py==2.4.0",
"misskey.py==4.1.0",
"websockets==14.1",
"flask==3.1.0",
"markupsafe==3.0.2",
"numpy==2.2.1",
"emoji==2.14.0",
"puremagic==1.28",
"audioop-lts==0.2.1",
"psycopg[binary,pool]==3.2.3",
"sudden-death==0.0.1",
]
dependencies = [ "python-dotenv==1.0.1", "requests==2.32.3", "Pillow>=7.1.2", "opencv-python==4.10.0.84", "slack-bolt==1.22.0", "slack-sdk==3.34.0", "gitpython==3.1.44", "pandas==2.2.3", "matplotlib==3.10.0", "openai==1.59.5", "discord.py==2.4.0", "misskey.py==4.1.0", "websockets==14.1", "flask==3.1.0", "markupsafe==3.0.2", "numpy==2.2.1", "emoji==2.14.0", "puremagic==1.28", "audioop-lts==0.2.1", "psycopg[binary,pool]==3.2.3", "sudden-death==0.0.1",]

[dependency-groups]
dev = [ "autopep8==2.3.1", "requests-mock==1.12.1", "pylint==3.3.3", "sqlfluff==3.3.0", "mypy==1.14.1", "flake8==7.1.1", "isort==5.13.2", "pre-commit==4.0.1", "importlib-metadata==8.5.0", "toml==0.10.2", "types-toml==0.10.8.20240310", "pyink==24.10.0",]
Expand All @@ -35,5 +13,6 @@ dev = [ "autopep8==2.3.1", "requests-mock==1.12.1", "pylint==3.3.3", "sqlfluff==
name = "pypi"
url = "https://pypi.org/simple"

[tool.uv.sources]
sudden-death = { git = "https://github.com/dev-hato/sudden-death", branch = "master" }
[tool.uv.sources.sudden-death]
git = "https://github.com/dev-hato/sudden-death"
branch = "master"
6 changes: 2 additions & 4 deletions scripts/pr_format/pr_format/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ tag_version="$(yq '.jobs.pr-super-lint.steps[-1].uses | line_comment' .github/wo
pyink_version="$(docker run --rm --entrypoint '' "ghcr.io/${tag_name}-${tag_version}" /bin/sh -c 'pyink --version' | grep pyink | awk '{ print $2 }')"
sed -i -e "s/pyink==.*\"/pyink==${pyink_version}\"/g" pyproject.toml
uv sync --dev
sudden_death_url="$(yq .tool.uv.sources.sudden-death.git pyproject.toml)"

if [ "$sudden_death_url" != 'null' ]; then
sudden_death_branch="$(yq .tool.uv.sources.sudden-death.branch pyproject.toml)"
uv add "git+$sudden_death_url" --branch "$sudden_death_branch"
if [ "$(yq .tool.uv.sources.sudden-death.git pyproject.toml)" != 'null' ]; then
uv lock --upgrade-package sudden-death
fi

uv tool run autopep8 --exit-code --in-place --recursive .
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2935fe7

Please sign in to comment.