mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Black rolls out style changes every year, and using "stable" means that the check run on PRs might start formatting differently than we do locally, or require a reformat of the codebase to make a PR submittable. Pin to the version that we've been using. We should update to 23 at some point, but we want to do that deliberately.
31 lines
600 B
YAML
31 lines
600 B
YAML
name: Python lint
|
|
|
|
on: workflow_call
|
|
|
|
jobs:
|
|
black:
|
|
name: Black
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
- uses: psf/black@stable
|
|
with:
|
|
version: ~=22.12
|
|
src: "."
|
|
options: "--check"
|
|
|
|
mypy:
|
|
name: Type checking
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Python environment
|
|
uses: ./.github/actions/setup-liberation-python
|
|
|
|
- name: mypy
|
|
uses: ./.github/actions/mypy
|