Skip to content

Commit

Permalink
Add linter to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Sep 14, 2023
1 parent 0d9984c commit 20420a6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: style

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
pip install --upgrade pip
pip install pre-commit
pip list
- name: Lint
run: pre-commit run --all-files --show-diff-on-failure --color always

0 comments on commit 20420a6

Please sign in to comment.