Files
aperisolve/.github/workflows/lint.yml
T
2026-01-08 18:31:47 +01:00

39 lines
1008 B
YAML

name: Linters
on: [push, pull_request]
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Python dependencies
run: |
pip install -r aperisolve/requirements-dev.txt
pip install -r aperisolve/requirements.txt
- name: Run linters
uses: wearerequired/lint-action@v2
with:
black: true
black_args: "--line-length=100"
flake8: true
flake8_args: "--ignore=E203,E501,W503"
pylint: true
pylint_args: "--disable W0511,W0718,R0801,R0903,R0914"
mypy: true
mypy_args: "--disallow-any-generics --disallow-untyped-def --follow-imports skip --ignore-missing-imports --disable-error-code unused-awaitable"