mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
Fix typeshed-sync workflow (#19367)
This commit is contained in:
parent
8d7d02193e
commit
c0d04f2d56
2 changed files with 3 additions and 3 deletions
2
.github/workflows/sync_typeshed.yaml
vendored
2
.github/workflows/sync_typeshed.yaml
vendored
|
@ -89,7 +89,7 @@ jobs:
|
||||||
- name: Push the changes
|
- name: Push the changes
|
||||||
id: commit
|
id: commit
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: git push --force --set-upstream origin "${UPSTREAM_BRANCH}"
|
run: git -C ruff push --force --set-upstream origin "${UPSTREAM_BRANCH}"
|
||||||
|
|
||||||
# Checkout the branch created by the sync job,
|
# Checkout the branch created by the sync job,
|
||||||
# and sync all docstrings available on Windows that are not available on Linux.
|
# and sync all docstrings available on Windows that are not available on Linux.
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
docstring_adder="git+https://github.com/astral-sh/docstring-adder.git@7f350b03ee83dd44ebd8010228ad3dfca34a7887"
|
docstring_adder="git+https://github.com/astral-sh/docstring-adder.git@513b650c8c6b0f1bb6f12d8f79da9294614214e4"
|
||||||
stdlib_path="./crates/ty_vendored/vendor/typeshed/stdlib"
|
stdlib_path="./crates/ty_vendored/vendor/typeshed/stdlib"
|
||||||
|
|
||||||
for python_version in 3.14 3.13 3.12 3.11 3.10 3.9
|
for python_version in 3.14 3.13 3.12 3.11 3.10 3.9
|
||||||
do
|
do
|
||||||
uvx --python="$python_version" --force-reinstall --from="${docstring_adder}" add-docstrings --stdlib-path="${stdlib_path}"
|
PYTHONUTF8=1 uvx --python="$python_version" --force-reinstall --from="${docstring_adder}" add-docstrings --stdlib-path="${stdlib_path}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue