Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump piped from 1d2337e to e6cef92 #952

Merged
merged 7 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/freeze-for-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Fetch merge branch
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resync-piped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-licence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
with:
submodules: "true"

Expand Down
481 changes: 293 additions & 188 deletions dev-requirements/constraints.txt

Large diffs are not rendered by default.

619 changes: 357 additions & 262 deletions dev-requirements/tests.txt

Large diffs are not rendered by default.

821 changes: 461 additions & 360 deletions dev-requirements/type-checking.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion piped
Submodule piped updated 37 files
+1 −1 .github/workflows/docker-publish.yml
+1 −1 .github/workflows/freeze-for-pr.yml
+1 −1 .github/workflows/lint.yml
+1 −1 .github/workflows/reformat.yml
+1 −1 .github/workflows/resync-piped.yml
+1 −1 .github/workflows/type-check.yml
+1 −1 .github/workflows/update-licence.yml
+1 −1 .github/workflows/upgrade-locks.yml
+1 −1 .github/workflows/verify-locks.yml
+6 −6 bot/requirements.txt
+29 −29 dev-requirements/flake8.txt
+12 −12 dev-requirements/type-checking.txt
+1 −1 github/actions/clippy.yml
+1 −1 github/actions/docker-publish.yml
+1 −1 github/actions/freeze-for-pr.yml
+1 −1 github/actions/lint.yml
+1 −1 github/actions/pr-docs.yml
+1 −1 github/actions/publish.yml
+2 −2 github/actions/py-test.yml
+1 −1 github/actions/reformat.yml
+1 −1 github/actions/release-docs.yml
+1 −1 github/actions/resync-piped.yml
+1 −1 github/actions/rustfmt.yml
+1 −1 github/actions/type-check.yml
+1 −1 github/actions/update-licence.yml
+1 −1 github/actions/upgrade-locks.yml
+1 −1 github/actions/verify-locks.yml
+1 −1 github/actions/verify-types.yml
+6 −6 python/base-requirements/docs.txt
+3 −3 python/base-requirements/flake8.txt
+6 −6 python/base-requirements/freeze-locks.txt
+29 −29 python/base-requirements/library-flake8.txt
+6 −6 python/base-requirements/lint.txt
+6 −6 python/base-requirements/nox.txt
+32 −32 python/base-requirements/reformat.txt
+6 −6 python/base-requirements/tests.txt
+6 −6 python/base-requirements/type-checking.txt
9 changes: 3 additions & 6 deletions tests/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,8 @@ def test_choices(
@tanjun.as_slash_command("command", "description")
async def callback(
ctx: tanjun.abc.Context,
nope: typing.Annotated[type_cls, annotations.Choices(choices), "default"], # pyright: ignore
boo: typing.Annotated[type_cls, annotations.Choices(choices), "be"] = typing.cast( # pyright: ignore
"_ChoiceT", "hi"
),
nope: typing.Annotated[type_cls, annotations.Choices(choices), "default"],
boo: typing.Annotated[type_cls, annotations.Choices(choices), "be"] = typing.cast("_ChoiceT", "hi"),
): ...

assert callback.build().options == [
Expand Down Expand Up @@ -789,8 +787,7 @@ def test_choices_and_mixed_values(
):
@tanjun.as_slash_command("command", "description")
async def callback(
ctx: tanjun.abc.Context,
nom: typing.Annotated[type_, annotations.Choices(choices), "description"], # pyright: ignore
ctx: tanjun.abc.Context, nom: typing.Annotated[type_, annotations.Choices(choices), "description"]
) -> None: ...

with pytest.raises(
Expand Down
6 changes: 2 additions & 4 deletions tests/test_annotations_future_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,8 @@ def test_choices(
@tanjun.as_slash_command("command", "description")
async def callback(
ctx: tanjun.abc.Context,
nope: typing.Annotated[type_cls_, annotations.Choices(choices_), "default"], # pyright: ignore
boo: typing.Annotated[type_cls_, annotations.Choices(choices_), "be"] = typing.cast( # pyright: ignore
"_ChoiceT", "hi"
),
nope: typing.Annotated[type_cls_, annotations.Choices(choices_), "default"],
boo: typing.Annotated[type_cls_, annotations.Choices(choices_), "be"] = typing.cast("_ChoiceT", "hi"),
): ...

assert callback.build().options == [
Expand Down
Loading