Skip to content

Commit

Permalink
Add codespell and ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 27, 2024
1 parent 04f74ec commit e25f49d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: pytest
name: lint_and_pytest
on:
push:
pull_request:
workflow_dispatch:
jobs:
codespell_and_ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user codespell[toml] ruff
- run: codespell
- run: ruff check --output-format=github
pytest:
strategy:
fail-fast: false
Expand Down
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 e25f49d

Please sign in to comment.