From 2942fb8bdc346f2686708f7f86474aa968b454e2 Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Mon, 5 Feb 2024 15:23:22 -0500 Subject: [PATCH] ci(codespell): separate codespell config into standalone file 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. --- .codespellrc | 5 +++++ .github/workflows/ibis-backends-skip-helper.yml | 2 ++ .github/workflows/ibis-backends.yml | 2 ++ pyproject.toml | 6 ------ 4 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 000000000000..2d2ec2582825 --- /dev/null +++ b/.codespellrc @@ -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 diff --git a/.github/workflows/ibis-backends-skip-helper.yml b/.github/workflows/ibis-backends-skip-helper.yml index 9676a0be42a5..fe7527926cc9 100644 --- a/.github/workflows/ibis-backends-skip-helper.yml +++ b/.github/workflows/ibis-backends-skip-helper.yml @@ -10,6 +10,7 @@ on: - "**/*.qmd" - "codecov.yml" - ".envrc" + - ".codespellrc" branches: - main - "*.x.x" @@ -20,6 +21,7 @@ on: - "**/*.qmd" - "codecov.yml" - ".envrc" + - ".codespellrc" branches: - main - "*.x.x" diff --git a/.github/workflows/ibis-backends.yml b/.github/workflows/ibis-backends.yml index b6e1bd1d37ff..73824d3e7735 100644 --- a/.github/workflows/ibis-backends.yml +++ b/.github/workflows/ibis-backends.yml @@ -9,6 +9,7 @@ on: - "**/*.qmd" - "codecov.yml" - ".envrc" + - ".codespellrc" branches: - main - "*.x.x" @@ -20,6 +21,7 @@ on: - "**/*.qmd" - "codecov.yml" - ".envrc" + - ".codespellrc" branches: - main - "*.x.x" diff --git a/pyproject.toml b/pyproject.toml index 74b253338639..62bd330ed647 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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