mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 12:46:39 +00:00
GitHub Action to lint Python code
Because Travis CI is no longer free for open source.
This commit is contained in:
@@ -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 .
|
||||
Reference in New Issue
Block a user