Skip to content

Commit 62b6b59

Browse files
committed
Merge branch 'master' into fix/metavar
2 parents 987eaaf + 17c0dce commit 62b6b59

File tree

342 files changed

+1116
-937
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+1116
-937
lines changed

.github/DISCUSSION_TEMPLATE/questions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ body:
6464
placeholder: |
6565
import typer
6666
67+
app = typer.Typer()
6768
69+
@app.command()
6870
def main(name: str):
6971
typer.echo(f"Hello {name}")
7072
7173
7274
if __name__ == "__main__":
73-
typer.run(main)
75+
app()
7476
render: python
7577
validations:
7678
required: true

.github/workflows/build-docs.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
outputs:
2222
docs: ${{ steps.filter.outputs.docs }}
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
# For pull requests it's not necessary to checkout the code but for the main branch it is
2626
- uses: dorny/paths-filter@v3
2727
id: filter
@@ -32,12 +32,9 @@ jobs:
3232
- docs/**
3333
- docs_src/**
3434
- requirements-docs.txt
35-
- requirements-docs-insiders.txt
3635
- pyproject.toml
3736
- mkdocs.yml
38-
- mkdocs.insiders.yml
39-
- mkdocs.maybe-insiders.yml
40-
- mkdocs.no-insiders.yml
37+
- mkdocs.env.yml
4138
- .github/workflows/build-docs.yml
4239
- .github/workflows/deploy-docs.yml
4340
- data/**
@@ -52,7 +49,7 @@ jobs:
5249
env:
5350
GITHUB_CONTEXT: ${{ toJson(github) }}
5451
run: echo "$GITHUB_CONTEXT"
55-
- uses: actions/checkout@v5
52+
- uses: actions/checkout@v6
5653
- name: Set up Python
5754
uses: actions/setup-python@v6
5855
with:
@@ -67,11 +64,6 @@ jobs:
6764
pyproject.toml
6865
- name: Install docs extras
6966
run: uv pip install -r requirements-docs.txt
70-
- name: Install Material for MkDocs Insiders
71-
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' )
72-
run: uv pip install -r requirements-docs-insiders.txt
73-
env:
74-
TOKEN: ${{ secrets.TYPER_MKDOCS_MATERIAL_INSIDERS }}
7567
- uses: actions/cache@v4
7668
with:
7769
key: mkdocs-cards-${{ github.ref }}-v1

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
GITHUB_CONTEXT: ${{ toJson(github) }}
2525
run: echo "$GITHUB_CONTEXT"
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@v6
2727
- name: Set up Python
2828
uses: actions/setup-python@v6
2929
with:

.github/workflows/latest-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_CONTEXT: ${{ toJson(github) }}
2626
run: echo "$GITHUB_CONTEXT"
27-
- uses: actions/checkout@v5
27+
- uses: actions/checkout@v6
2828
with:
2929
# To allow latest-changes to commit to the main branch
3030
token: ${{ secrets.TYPER_LATEST_CHANGES }}
@@ -34,7 +34,7 @@ jobs:
3434
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
3535
with:
3636
limit-access-to-actor: true
37-
- uses: tiangolo/latest-changes@0.4.0
37+
- uses: tiangolo/latest-changes@0.4.1
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
4040
latest_changes_file: docs/release-notes.md

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
GITHUB_CONTEXT: ${{ toJson(github) }}
2323
run: echo "$GITHUB_CONTEXT"
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
- name: Set up Python
2626
uses: actions/setup-python@v6
2727
with:

.github/workflows/smokeshow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
GITHUB_CONTEXT: ${{ toJson(github) }}
2424
run: echo "$GITHUB_CONTEXT"
25-
- uses: actions/checkout@v5
25+
- uses: actions/checkout@v6
2626
- uses: actions/setup-python@v6
2727
with:
2828
python-version: '3.9'

.github/workflows/test-cpython-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
continue-on-error: true
1212
steps:
13-
- uses: actions/checkout@v5
13+
- uses: actions/checkout@v6
1414
- name: Checkout CPython main
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@v6
1616
with:
1717
repository: python/cpython
1818
ref: main

.github/workflows/test-redistribute.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
GITHUB_CONTEXT: ${{ toJson(github) }}
2525
run: echo "$GITHUB_CONTEXT"
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@v6
2727
- name: Set up Python
2828
uses: actions/setup-python@v6
2929
with:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
GITHUB_CONTEXT: ${{ toJson(github) }}
4343
run: echo "$GITHUB_CONTEXT"
44-
- uses: actions/checkout@v5
44+
- uses: actions/checkout@v6
4545
- name: Set up Python
4646
uses: actions/setup-python@v6
4747
with:
@@ -81,7 +81,7 @@ jobs:
8181
env:
8282
GITHUB_CONTEXT: ${{ toJson(github) }}
8383
run: echo "$GITHUB_CONTEXT"
84-
- uses: actions/checkout@v5
84+
- uses: actions/checkout@v6
8585
- uses: actions/setup-python@v6
8686
with:
8787
python-version: '3.8'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.14.4
17+
rev: v0.14.6
1818
hooks:
1919
- id: ruff
2020
args:

0 commit comments

Comments
 (0)