Skip to content

Commit e25f49d

Browse files
committed
Add codespell and ruff linting
1 parent 04f74ec commit e25f49d

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/pytest.yml .github/workflows/lint_and_pytest.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
name: pytest
1+
name: lint_and_pytest
22
on:
33
push:
44
pull_request:
55
workflow_dispatch:
66
jobs:
7+
codespell_and_ruff:
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
714
pytest:
815
strategy:
916
fail-fast: false

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)