Skip to content

Commit

Permalink
actually add the linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall-Hallenbeck committed Sep 22, 2023
1 parent d0ecd4b commit 9eb4487
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint Python code with ruff
on: [push, pull_request]

jobs:
lint:
name: Lint Python code with ruff
runs-on: ubuntu-latest
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff --format=github --target-version=py37
--ignore=E101,E501,E401,E402,E701,E703,E711,E712,E713,E714,E721,E722,E731,E741,F401,F403,F405,F601,F811,F841,F901 .

0 comments on commit 9eb4487

Please sign in to comment.