Files
OSACA/.github/workflows/lint.yml
2022-04-07 12:12:33 +02:00

36 lines
820 B
YAML

name: Lint
on: push
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Python dependencies
run: python -m pip install black flake8
- name: Black solo
uses: psf/black@stable
with:
options: "--check --verbose --diff --color -l 99"
- name: Run linters
uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
# Enable linters
black: true
black_args: "-l 99"
flake8: true
flake8_args: "--max-line-length=99 --extend-ignore=E203,E501"