Skip to content

Commit

Permalink
Merge pull request #4632 from dev-hato/use_hato_bot_only
Browse files Browse the repository at this point in the history
CI pr-format: sudden-deathのインストール処理はhato-botでのみ行う
  • Loading branch information
massongit authored Jan 7, 2025
2 parents c8da068 + dbf9492 commit f5a8a10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .dockle-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.14
0.4.15
8 changes: 6 additions & 2 deletions scripts/pr_format/pr_format/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ pyink_version="$(docker run --rm --entrypoint '' "ghcr.io/${tag_name}-${tag_vers
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)"
sudden_death_branch="$(yq .tool.uv.sources.sudden-death.branch pyproject.toml)"
uv add "git+$sudden_death_url" --branch "$sudden_death_branch"

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"
fi

uv tool run autopep8 --exit-code --in-place --recursive .
uv tool run pyink --config .python-black .
uv tool run isort --sp .isort.cfg .

0 comments on commit f5a8a10

Please sign in to comment.