Skip to content
Open
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 .config/copier/.copier-answers.python.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## This file is @generated by <https://github.com/liblaf/copier-python>.
# DO NOT EDIT!
# prettier-ignore
_commit: v0.1.40
_commit: v0.1.44
_src_path: gh:liblaf/copier-python
answers_file_shared: .config/copier/.copier-answers.shared.yaml
distribution_name: liblaf-melon
Expand Down
2 changes: 1 addition & 1 deletion .config/copier/.copier-answers.release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is @generated by <https://github.com/liblaf/copier-release>.
# DO NOT EDIT!
_commit: v0.3.7
_commit: v0.3.14
_src_path: gh:liblaf/copier-release
2 changes: 1 addition & 1 deletion .config/copier/.copier-answers.shared.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
_commit: v0.2.18
_commit: v0.2.24
_src_path: gh:liblaf/copier-shared
author_email: 30631553+liblaf@users.noreply.github.com
author_name: liblaf
Expand Down
10 changes: 5 additions & 5 deletions .config/mise/conf.d/50-python.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ run = ["rm --force --recursive '{{ config_root }}/.cache'", "zensical serve"]

[tasks."gen:init"]
description = "Generate lazy-loading __init__.py files from __init__.pyi stubs"
file = "https://raw.githubusercontent.com/liblaf/copier-python/bf21783d9e1e7335f6ea24ac13ec683a54e8054a/mise-tasks/gen/init.py"
file = "https://cdn.jsdelivr.net/gh/liblaf/copier-python@e999e0b3fd92ddbdb79368750fad42d4c6388e18/mise-tasks/gen/init.py"

[tasks."gen:ref-pages"]
description = "Generate API reference pages from public Python modules"
file = "https://raw.githubusercontent.com/liblaf/copier-python/bf21783d9e1e7335f6ea24ac13ec683a54e8054a/mise-tasks/gen/ref-pages.py"
file = "https://cdn.jsdelivr.net/gh/liblaf/copier-python@e999e0b3fd92ddbdb79368750fad42d4c6388e18/mise-tasks/gen/ref-pages.py"

[tasks.install]
description = "Install project dependencies from pixi.lock or uv.lock"
file = "https://raw.githubusercontent.com/liblaf/copier-python/bf21783d9e1e7335f6ea24ac13ec683a54e8054a/mise-tasks/install.sh"
file = "https://cdn.jsdelivr.net/gh/liblaf/copier-python@e999e0b3fd92ddbdb79368750fad42d4c6388e18/mise-tasks/install.sh"

[tasks.lint]
description = "Run all linters"
Expand All @@ -42,8 +42,8 @@ run = ["lint-imports", "ruff check --fix", "ruff format", "ty check --fix"]

[tasks."lint:toml"]
description = "Sort, format, and lint TOML files with toml-sort and tombi"
file = "https://raw.githubusercontent.com/liblaf/copier-python/bf21783d9e1e7335f6ea24ac13ec683a54e8054a/mise-tasks/lint/toml.sh"
file = "https://cdn.jsdelivr.net/gh/liblaf/copier-python@e999e0b3fd92ddbdb79368750fad42d4c6388e18/mise-tasks/lint/toml.sh"

[tasks.upgrade]
description = "Upgrade project dependencies from pixi.lock or uv.lock"
file = "https://raw.githubusercontent.com/liblaf/copier-python/bf21783d9e1e7335f6ea24ac13ec683a54e8054a/mise-tasks/upgrade.sh"
file = "https://cdn.jsdelivr.net/gh/liblaf/copier-python@e999e0b3fd92ddbdb79368750fad42d4c6388e18/mise-tasks/upgrade.sh"
8 changes: 6 additions & 2 deletions .config/mise/conf.d/50-shared.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!

# Use jsdelivr.net instead of raw.githubusercontent.com to avoid HTTP 429 (Too Many
# Requests) rate limit errors

[tasks.copier-update]
description = "Recopy all configured Copier templates from their answers files."
file = "https://raw.githubusercontent.com/liblaf/copier-shared/bb5302cfb2e34a3dcecbd076580dcb64b2ff4942/mise-tasks/copier-update.sh"
description = "Reapply all Copier templates using their saved answers"
file = "https://cdn.jsdelivr.net/gh/liblaf/copier-shared@065e35a2e53df85a160950c67df0b33f09aed064/mise-tasks/copier-update.sh"
interactive = true
10 changes: 5 additions & 5 deletions .github/workflows/python-bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
sessions: ${{ steps.collect.outputs.sessions }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
activate-environment: true
- name: Install dependencies
Expand All @@ -47,15 +47,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
activate-environment: true
- name: Install dependencies
run: uv sync --active --frozen --all-packages
- name: Bench
uses: CodSpeedHQ/action@c145068895e045cc725ee76fcd2307624b65c3af # v4
uses: CodSpeedHQ/action@88472375d0a4572cf70a9f1fe3a4e0ab8da1b924 # v5
with:
run: nox --tags 'bench'
mode: simulation,walltime,memory
4 changes: 2 additions & 2 deletions .github/workflows/python-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- id: config
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Set environment variables
run: echo 'SITE_URL=${{ steps.config.outputs.base_url }}' >> "$GITHUB_ENV"
- name: Setup uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
activate-environment: true
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/python-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
package-version: ${{ steps.build.outputs.package_version }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- id: build
name: Build and inspect a Python package
uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2
uses: hynek/build-and-inspect-python-package@2abe76da66d0a6a4a227101f9348ee855797cfa5 # v3.0.1
with:
attest-build-provenance-github: true

Expand All @@ -50,7 +50,7 @@ jobs:
name: ${{ needs.build.outputs.artifact-name }}
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
with:
verbose: ${{ runner.debug == '1' }}
print-hash: true
Expand All @@ -70,7 +70,7 @@ jobs:
name: ${{ needs.build.outputs.artifact-name }}
path: dist
- name: Upload release assets
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3
with:
draft: false
files: dist/*
8 changes: 4 additions & 4 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
sessions: ${{ steps.collect.outputs.sessions }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
activate-environment: true
- name: Install dependencies
Expand All @@ -49,11 +49,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0 # I don't know why, but it is present in Codecov's documentation
- name: Setup uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
activate-environment: true
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Install git-cliff
uses: taiki-e/install-action@7a79fe8c3a13344501c80d99cae481c1c9085912 # v2
uses: taiki-e/install-action@1beb33eee6d086258184383af9a538940be190ed # v2
with:
tool: git-cliff
- id: version
name: Next version
uses: liblaf/actions/next-version@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/next-version@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
env:
GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }}
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -60,12 +60,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/auth@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Install rumdl
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/auth@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
token: ${{ steps.auth.outputs.token }}
- id: version
Expand All @@ -41,7 +41,7 @@ jobs:
env:
TITLE: ${{ github.event.pull_request.title }}
- name: Create release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3
with:
body: ${{ github.event.pull_request.body }}
tag_name: ${{ steps.version.outputs.tag }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/shared-approve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/auth@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Approve
uses: liblaf/actions/approve@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/approve@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
approve-token: ${{ steps.auth.outputs.token }}
label: ${{ matrix.label }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/shared-copier-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/auth@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install mise
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4
uses: jdx/mise-action@7e36c90d9ab29c415a2384db3006f3ec8a8cc654 # v4
- name: Install Copier
run: pipx install --pip-args cookiecutter copier
- name: Copier update
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/shared-mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/auth@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- id: lint
name: MegaLinter
uses: liblaf/megalinter-custom-flavor-all@479fdf589ac234313c22405ba01af2f37deb96e8 # main
uses: liblaf/megalinter-custom-flavor-all@4e698aefdb7056813167596e16c0d31b470be2e8 # main
env:
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
MEGALINTER_CONFIG: https://raw.githubusercontent.com/liblaf/megalinter-custom-flavor-all/refs/heads/main/.mega-linter.yml
Expand Down Expand Up @@ -90,12 +90,12 @@ jobs:
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/auth@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Approve
uses: liblaf/actions/approve@512d1652c6a71a8f141d1901f50994afaddc925e # v3
uses: liblaf/actions/approve@f53e930a3c8515151fc60ca60623e766c0c85643 # v3
with:
approve-token: ${{ steps.auth.outputs.token }}
pull: ${{ needs.mega-linter.outputs.pull-request-url }}
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.16
rev: v0.16.0
hooks:
- id: ruff-check
args:
- --fix
- id: ruff-format
- repo: https://github.com/oxc-project/mirrors-oxfmt
rev: v0.54.0
rev: v0.45.0
hooks:
- id: oxfmt
- repo: https://github.com/oxc-project/mirrors-oxlint
rev: v1.69.0
rev: v1.60.0
hooks:
- id: oxlint
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -52,7 +52,7 @@ repos:
hooks:
- id: actionlint
- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.2.10
rev: v0.2.43
hooks:
- id: rumdl-fmt
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand Down
Loading