mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
31 lines
601 B
YAML
31 lines
601 B
YAML
name: Python lint
|
|
|
|
on: workflow_call
|
|
|
|
jobs:
|
|
black:
|
|
name: Black
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
- uses: psf/black@stable
|
|
with:
|
|
version: ~=24.3.0
|
|
src: "."
|
|
options: "--check"
|
|
|
|
mypy:
|
|
name: Type checking
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Python environment
|
|
uses: ./.github/actions/setup-liberation-python
|
|
|
|
- name: mypy
|
|
uses: ./.github/actions/mypy
|