Skip to content

Commit

Permalink
Find typos with codespell and lint Python code with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 28, 2024
1 parent fb6e5dc commit 994aca3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: lint
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user codespell[toml] ruff
- run: codespell
- run: ruff check --output-format=github
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@ requires = [
"setuptools >= 66.1"
]
build-backend = "setuptools.build_meta"

[tool.codespell]
ignore-words-list = "alltime,blong,ccompiler,fo,hel"
skip = "*.bak"

[tool.ruff.lint]
select = [
"E9",
"F63",
"F7",
"F82",
]
[tool.ruff.lint.per-file-ignores]
"src/cffi/verifier.py" = ["F821"]
"testing/*" = ["F821"]

0 comments on commit 994aca3

Please sign in to comment.