This repository contains shared helper scripts and repository-level tooling used across LizardByte projects.
The current tooling includes Python-managed helpers and reusable GitHub workflows:
scripts/update_clang_format.pyrunsclang-formatacross supported source directories.scripts/localize.pyupdates gettext and Babel locale files..github/workflows/localize.ymlruns the locale helper from GitHub Actions and opens localization update pull requests.
Install uv and sync the locked tool environment:
uv sync --lockedRun the clang-format helper:
uv run --locked python scripts/update_clang_format.pyRun gettext extraction:
uv run --locked --only-group locale python scripts/localize.py --extractReusable GitHub workflows live under .github/workflows/.
localize.ymlextracts gettext strings with the shared locale helper and can open a localization update pull request.
name: localize
permissions: {}
on:
push:
branches:
- master
paths:
- '.github/workflows/localize.yml'
- 'src/**'
- 'locale/sunshine.po'
workflow_dispatch:
jobs:
localize:
name: Update Localization
permissions:
contents: read
uses: LizardByte/lizardbyte-common/.github/workflows/localize.yml@master
secrets:
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}Run the pytest suite:
uv run --locked --only-group test-python pytest