2023-01-11 19:17:38 -05:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-10 15:07:57 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: pip
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install -r requirements-dev.txt
|
|
|
|
- name: Run pre-commit
|
|
|
|
run: |
|
|
|
|
python -m pre_commit run -a --show-diff-on-failure
|