mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
New version of 'black' will most likely cause a lot of merge conflicts, thus let's pin the version for now until the Pretense generator is merged...
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@v2
|
|
- uses: actions/setup-python@v2
|
|
- uses: psf/black@stable
|
|
with:
|
|
src: "."
|
|
options: "--check"
|
|
version: "23.9.1"
|
|
|
|
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
|