diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..54b3f23 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,71 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/lint.yml': + - 'actions/checkout@v7.0.1' + - 'github/gh-actions-lock@verify/v0.5.1' + - 'j178/prek-action@v3.1.1' + '.github/workflows/test.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-python@v7.1.0' + - 'actions/upload-artifact@v7.0.2' + - 'codecov/codecov-action@v7.1.1' + - 'hynek/setup-cached-uv@v2.6.0' +dependencies: + 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9': + ref: 'v6.1.0' + commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + owner_id: 44036562 + repo_id: 215566462 + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd': + ref: 'v8.0.0' + commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd' + owner_id: 44036562 + repo_id: 205262760 + 'actions/setup-python@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0' + owner_id: 44036562 + repo_id: 192625525 + 'actions/upload-artifact@v7.0.2': + ref: 'v7.0.2' + commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' + owner_id: 44036562 + repo_id: 192625955 + 'codecov/codecov-action@v7.1.1': + ref: 'v7.1.1' + commit: 'sha1-303a32d7a59b442fa8d48b6a1cc6825c09c847a5' + owner_id: 8226205 + repo_id: 200299178 + uses: + - 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' + 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47': + ref: 'v1.4.4' + commit: 'sha1-598d7a875d5620e0457490555b5e18e46082aa47' + owner_id: 56696274 + repo_id: 617991574 + 'github/gh-actions-lock@verify/v0.5.1': + ref: 'verify/v0.5.1' + commit: 'sha1-5fa07d19c267d19e29f4341f10fdf7f516375038' + owner_id: 9919 + repo_id: 1217640442 + 'hynek/setup-cached-uv@v2.6.0': + ref: 'v2.6.0' + commit: 'sha1-34e35d30f1ebc7421a5cc733bca38dcc62603960' + owner_id: 41240 + repo_id: 779953216 + uses: + - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + - 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47' + 'j178/prek-action@v3.1.1': + ref: 'v3.1.1' + commit: 'sha1-7b101f8338a08d2bd6fdb3625e4e7692428763a3' + owner_id: 10510431 + repo_id: 1052387486 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f980455..7e82bdc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - uses: j178/prek-action@v3.1.1 + + # Fails when .github/workflows/actions.lock is out of sync with the + # workflows or a locked pin no longer verifies upstream. + lockfile: + runs-on: ubuntu-slim + + steps: + - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false + - uses: github/gh-actions-lock@verify/v0.5.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1443f03..17f2305 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,10 +17,10 @@ jobs: branch: ["3.14", "3.15", "main"] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - - uses: actions/setup-python@v7 + - uses: actions/setup-python@v7.1.0 with: python-version: "3.x" @@ -42,7 +42,7 @@ jobs: --branches ${{ matrix.branch }} - name: Upload documentation - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v7.0.2 with: name: www-root-${{ matrix.branch }} path: ./www @@ -58,24 +58,24 @@ jobs: os: [windows-latest, macos-latest, ubuntu-latest] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v7 + uses: actions/setup-python@v7.1.0 with: python-version: ${{ matrix.python-version }} allow-prereleases: true - name: Install uv - uses: hynek/setup-cached-uv@v2 + uses: hynek/setup-cached-uv@v2.6.0 - name: Tox tests run: uvx --with tox-uv tox -e py - name: Upload coverage - uses: codecov/codecov-action@v7 + uses: codecov/codecov-action@v7.1.1 with: flags: ${{ matrix.os }} name: Python ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 695f0c7..39e5d8d 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: v6.0.0 + rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -14,45 +14,45 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.17.6 + rev: 9026c9127e153371d7a78dfcb0c45ae2046a3d10 # frozen: v0.17.6 hooks: - id: ruff-check args: [--fix] - id: ruff-format - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.40.0 + rev: 5cd68003238a7d47422b94d96a5fa492667cc92c # frozen: 0.40.0 hooks: - id: check-dependabot - id: check-github-workflows - repo: https://github.com/rhysd/actionlint - rev: v1.7.12 + rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12 hooks: - id: actionlint - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.33.1 + rev: c7d31dc612dffdd4d3b2f2b88b9660d3ab057ee8 # frozen: v1.33.1 hooks: - id: zizmor - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.31.4 + rev: 6047d757bd7d8cf96bb6abdad75b15edd93f489b # frozen: v2.31.4 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.27 + rev: 82d21874c3242e4dc27bb47641c996902ef64eef # frozen: v0.27 hooks: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.10.3 + rev: 2116dba1a9820e51762d8ef27dfcef7b0a0499e6 # frozen: 1.10.3 hooks: - id: tox-ini-fmt - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.10.1 + rev: c035d5c3fc2ce295b961030061d09de67d9203dc # frozen: v3.10.1 hooks: - id: prettier files: templates/switchers.js