Skip to content

Commit 994aca3

Browse files
committed
Find typos with codespell and lint Python code with ruff
1 parent fb6e5dc commit 994aca3

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/lint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: lint
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- run: pip install --user codespell[toml] ruff
12+
- run: codespell
13+
- run: ruff check --output-format=github

pyproject.toml

+15
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@ requires = [
55
"setuptools >= 66.1"
66
]
77
build-backend = "setuptools.build_meta"
8+
9+
[tool.codespell]
10+
ignore-words-list = "alltime,blong,ccompiler,fo,hel"
11+
skip = "*.bak"
12+
13+
[tool.ruff.lint]
14+
select = [
15+
"E9",
16+
"F63",
17+
"F7",
18+
"F82",
19+
]
20+
[tool.ruff.lint.per-file-ignores]
21+
"src/cffi/verifier.py" = ["F821"]
22+
"testing/*" = ["F821"]

0 commit comments

Comments
 (0)