GitHub Action to lint Python code

Because Travis CI is no longer free for open source.
pull/341/head
Christian Clauss 2023-04-05 08:54:21 +02:00 committed by GitHub
parent e21b6a23c6
commit b9260ec384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

14
.github/workflows/ruff.yml vendored Normal file
View File

@ -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 .