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: diff --git a/pyproject.toml b/pyproject.toml index d3065ae7b129a..6ce05ce5d679e 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/\.])+