diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4a43ba0..3b6092d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -33,7 +33,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true @@ -47,7 +47,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.12" - run: curl -LsSf https://astral.sh/uv/install.sh | sh @@ -66,7 +66,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5368acb..93e4bcb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,8 +17,8 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 with: python-version: "3.12" - name: Install pypa/build diff --git a/.github/workflows/typeshed_primer.yml b/.github/workflows/typeshed_primer.yml index 2593c02..226f970 100644 --- a/.github/workflows/typeshed_primer.yml +++ b/.github/workflows/typeshed_primer.yml @@ -37,7 +37,7 @@ jobs: repository: python/typeshed path: typeshed - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.12" - name: Install uv @@ -61,7 +61,7 @@ jobs: echo ${{ github.event.pull_request.number }} | tee pr_number.txt diff old_errors.txt new_errors.txt | tee errors_diff.txt - name: Upload diff and PR number - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: typeshed_primer_errors path: | diff --git a/.github/workflows/typeshed_primer_comment.yml b/.github/workflows/typeshed_primer_comment.yml index 5971588..f5d69c3 100644 --- a/.github/workflows/typeshed_primer_comment.yml +++ b/.github/workflows/typeshed_primer_comment.yml @@ -19,13 +19,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Download errors - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: await require('.github/scripts/typeshed_primer_download_errors.js')({github, context}) - run: unzip errors.zip - name: Post comment id: post-comment - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: return await require('.github/scripts/typeshed_primer_post_comment.js')({github, context}) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6e9567..d709a1f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 # must match pyproject.toml + rev: v4.6.0 # must match pyproject.toml hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -9,7 +9,7 @@ repos: - id: check-merge-conflict - id: mixed-line-ending - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.3.0 # must match pyproject.toml + rev: 24.4.2 # must match pyproject.toml hooks: - id: black language_version: python3.8 diff --git a/pyproject.toml b/pyproject.toml index 495e9fd..a82db07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,14 +60,14 @@ dependencies = [ [project.optional-dependencies] dev = [ - "black==24.3.0", # Must match .pre-commit-config.yaml - "flake8-bugbear==24.2.6", + "black==24.4.2", # Must match .pre-commit-config.yaml + "flake8-bugbear==24.4.26", "flake8-noqa==1.4.0", "isort==5.13.2", # Must match .pre-commit-config.yaml - "mypy==1.9.0", - "pre-commit-hooks==4.5.0", # Must match .pre-commit-config.yaml - "pytest==8.1.1", - "pytest-xdist==3.5.0", + "mypy==1.10.0", + "pre-commit-hooks==4.6.0", # Must match .pre-commit-config.yaml + "pytest==8.2.2", + "pytest-xdist==3.6.1", "types-pyflakes<4", ]