Files
dependabot[bot] 0ea9365df8 ci: bump python/mypy from 2.3.1 to 2.4.0
Bumps [python/mypy](https://github.com/python/mypy) from 2.3.1 to 2.4.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: python/mypy
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-04 15:51:50 +02:00

86 lines
2.1 KiB
YAML

name: lint
on:
push:
branches:
- master
- ci
- 'release/**'
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
commit-msg:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 50
- name: Lint
run: |
./ci/lint-commit-msg.py
swift:
runs-on: ubuntu-latest
container: ghcr.io/realm/swiftlint:0.65.1
steps:
- uses: actions/checkout@v7
- run: swiftlint lint --strict --reporter github-actions-logging
lua:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
- run: |
curl -sSfL -o "$RUNNER_TEMP/luacheck" https://github.com/lunarmodules/luacheck/releases/download/v1.2.0/luacheck
chmod +x "$RUNNER_TEMP/luacheck"
"$RUNNER_TEMP/luacheck" .
ruff:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
- name: Check
id: check
uses: astral-sh/ruff-action@v4.1.0
with:
src: ". TOOLS/umpv"
- name: Suggested changes
if: ${{ failure() && steps.check.outcome == 'failure' }}
run: ruff check . TOOLS/umpv --diff
mypy:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
- uses: python/mypy@v2.4.0
with:
install_project_dependencies: no
options: '--check-untyped-defs'
paths: ". TOOLS/umpv"
editorconfig:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
- uses: editorconfig-checker/action-editorconfig-checker@v3.0.0
- run: editorconfig-checker -config .editorconfig-checker.json
pre-commit:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
- uses: actions/cache@v6
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- run: |
python -m pip install pre-commit
pre-commit run --all-files --show-diff-on-failure --color=always