From b9260ec38401e1cc43a35d957096f6bc59311db0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 5 Apr 2023 08:54:21 +0200 Subject: [PATCH] GitHub Action to lint Python code Because Travis CI is no longer free for open source. --- .github/workflows/ruff.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..848d826 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,14 @@ +# https://beta.ruff.rs +name: ruff +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: pip install --user ruff + - run: ruff --format=github --ignore=F401 --target-version=py37 .