From 9eb44873697db922af84c2bf5c9503f3fe30c0c8 Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Thu, 21 Sep 2023 23:45:41 -0400 Subject: [PATCH] actually add the linter workflow --- .github/workflows/lint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e69de29bb..b0919cf52 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 . \ No newline at end of file