From a4f12db596efc6c9a01b9b4fc371fa4f4aabcb7f Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 26 Nov 2022 18:36:28 -0600 Subject: [PATCH 1/3] CLN: move codespell config to pyproject.toml --- pyproject.toml | 4 ++++ setup.cfg | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d3065ae7b129a..8325abb1f5b90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -334,3 +334,7 @@ exclude_lines = [ [tool.coverage.html] directory = "coverage_html_report" + +[tool.codespell] +ignore-words-list = "blocs,coo,hist,nd,sav,ser,recuse" +ignore-regex = 'https://([\w/\.])+' diff --git a/setup.cfg b/setup.cfg index dbd7cce1874c8..6de5bf2173a70 100644 --- a/setup.cfg +++ b/setup.cfg @@ -283,7 +283,3 @@ exclude = # work around issue of undefined variable warnings # https://github.com/pandas-dev/pandas/pull/38837#issuecomment-752884156 doc/source/getting_started/comparison/includes/*.rst - -[codespell] -ignore-words-list = blocs,coo,hist,nd,sav,ser,recuse -ignore-regex = https://([\w/\.])+ From f9182459fd41bb21ff746485637a0469dd7cdb93 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 26 Nov 2022 20:24:07 -0600 Subject: [PATCH 2/3] debug config file --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8325abb1f5b90..6ce05ce5d679e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -336,5 +336,5 @@ exclude_lines = [ directory = "coverage_html_report" [tool.codespell] -ignore-words-list = "blocs,coo,hist,nd,sav,ser,recuse" +ignore-words-list = "blocs, coo, hist, nd, sav, ser, recuse" ignore-regex = 'https://([\w/\.])+' From 68688638488892ed898d8f5420854b093a40f02c Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 26 Nov 2022 20:49:22 -0600 Subject: [PATCH 3/3] add tomli --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b74dd057e865..cc6875589c691 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,7 @@ repos: hooks: - id: codespell types_or: [python, rst, markdown] + additional_dependencies: [tomli] - repo: https://github.com/MarcoGorelli/cython-lint rev: v0.2.1 hooks: