Skip to content

Commit d25a29a

Browse files
committed
GitHub Actions: Lint Python code only for SyntaxErrors
Turn off 800+ lint rules to only look for Python SyntaxErrors. * https://docs.astral.sh/ruff
1 parent ec19be4 commit d25a29a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This Action uses minimal steps to run in ~5 seconds to rapidly:
2+
# lint Python code using ruff which provides intuitive GitHub Annotations to contributors.
3+
# https://docs.astral.sh/ruff/
4+
5+
name: ci
6+
on:
7+
push:
8+
# branches: [main]
9+
pull_request:
10+
# branches: [main]
11+
jobs:
12+
ruff:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: astral-sh/ruff-action@v3
17+
with:
18+
args: check --ignore=ALL # Turn off 800+ lint rules to only look for Python SyntaxErrors.

0 commit comments

Comments
 (0)