Skip to content

Commit 1b3ae01

Browse files
authored
Add a GitHub Action to look for typos and lint Python code (#72)
* Add a GitHub Action to look for typos and lint Python code * Update ci.yml
1 parent 57f8393 commit 1b3ae01

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
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+
# look for typos in the codebase using codespell, and
3+
# lint Python code using ruff and provide intuitive GitHub Annotations to contributors.
4+
name: ci
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
workflow_dispatch:
11+
jobs:
12+
codespell_and_ruff:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: codespell-project/actions-codespell@v2
17+
- uses: astral-sh/ruff-action@v3
18+
- run: ruff format --diff

0 commit comments

Comments
 (0)