Skip to content

Commit

Permalink
Add lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Oct 1, 2024
1 parent a4543e8 commit 1abcad5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint

on: [push]

jobs:
test:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: setup ruff
run: pip install ruff

- name: check ruff linter
run: |
ruff check . --fix-only --output-format=github
ruff check . --output-format=github --config 'lint.ignore = ["E501", "E402", "E731", "E722", "F841", "E711", "E712"]'
- name: check ruff formatter
run: ruff format --check .

0 comments on commit 1abcad5

Please sign in to comment.