Skip to content

Commit 61e0db2

Browse files
authored
CLN: move codespell config to pyproject.toml (#49923)
* CLN: move codespell config to pyproject.toml * debug config file * add tomli
1 parent 9fe5ea4 commit 61e0db2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ repos:
2626
hooks:
2727
- id: codespell
2828
types_or: [python, rst, markdown]
29+
additional_dependencies: [tomli]
2930
- repo: https://github.com/MarcoGorelli/cython-lint
3031
rev: v0.2.1
3132
hooks:

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -334,3 +334,7 @@ exclude_lines = [
334334

335335
[tool.coverage.html]
336336
directory = "coverage_html_report"
337+
338+
[tool.codespell]
339+
ignore-words-list = "blocs, coo, hist, nd, sav, ser, recuse"
340+
ignore-regex = 'https://([\w/\.])+'

setup.cfg

-4
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,3 @@ exclude =
283283
# work around issue of undefined variable warnings
284284
# https://github.com/pandas-dev/pandas/pull/38837#issuecomment-752884156
285285
doc/source/getting_started/comparison/includes/*.rst
286-
287-
[codespell]
288-
ignore-words-list = blocs,coo,hist,nd,sav,ser,recuse
289-
ignore-regex = https://([\w/\.])+

0 commit comments

Comments
 (0)