Skip to content

Commit

Permalink
GitHub Action to run the ruff ASYNC rules
Browse files Browse the repository at this point in the history
% [`ruff --select=ASYNC .`](https://beta.ruff.rs/docs/rules/open-sleep-or-subprocess-in-async-function)
2	ASYNC101	[ ] Async functions should not call `open`, `time.sleep`, or `subprocess` methods
  • Loading branch information
cclauss authored Jul 19, 2023
1 parent 985c448 commit 10d777e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://beta.ruff.rs
name: ruff
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user codespell[toml] ruff
- run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock,*.po"
- run: ruff --format=github --select=E9,F63,F7 --target-version=py38 . || true
- run: ruff --format=github --select=ASYNC --target-version=py38 .

0 comments on commit 10d777e

Please sign in to comment.