Skip to content

Commit

Permalink
ci(codespell): separate codespell config into standalone file
Browse files Browse the repository at this point in the history
I really like `pyproject.toml` and having one place to look.  But
running the full backend test suite because we need to add a word to an
"ignore-list" for codespell is silly.

So, breaking it out into a `.codespellrc` file so that it can be updated
without triggering a full CI run.
  • Loading branch information
gforsyth authored and jcrist committed Feb 5, 2024
1 parent 8f35010 commit 2942fb8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
# local codespell matches `./docs`, pre-commit codespell matches `docs`
skip = *.lock,.direnv,.git,./docs/_freeze,./docs/_output/**,./docs/_inv/**,docs/_freeze/**,*.svg,*.css,*.html,*.js
ignore-regex = \b(i[if]f|I[IF]F|AFE)\b
builtin = clear,rare,names
2 changes: 2 additions & 0 deletions .github/workflows/ibis-backends-skip-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- "**/*.qmd"
- "codecov.yml"
- ".envrc"
- ".codespellrc"
branches:
- main
- "*.x.x"
Expand All @@ -20,6 +21,7 @@ on:
- "**/*.qmd"
- "codecov.yml"
- ".envrc"
- ".codespellrc"
branches:
- main
- "*.x.x"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ibis-backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- "**/*.qmd"
- "codecov.yml"
- ".envrc"
- ".codespellrc"
branches:
- main
- "*.x.x"
Expand All @@ -20,6 +21,7 @@ on:
- "**/*.qmd"
- "codecov.yml"
- ".envrc"
- ".codespellrc"
branches:
- main
- "*.x.x"
Expand Down
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,6 @@ show_dot = false
no_dot = true
show_deps = true

[tool.codespell]
# local codespell matches `./docs`, pre-commit codespell matches `docs`
skip = "*.lock,.direnv,.git,./docs/_freeze,docs/_freeze/**,*.svg,*.css,*.html,*.js"
ignore-regex = '\b(i[if]f|I[IF]F|AFE)\b'
builtin = "clear,rare,names"

[tool.ruff]
line-length = 88
respect-gitignore = true
Expand Down

0 comments on commit 2942fb8

Please sign in to comment.