From fcfac9feab22bec5e9ccd600c275eff69d7ed67b Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 26 Jan 2024 09:03:58 -0500 Subject: [PATCH] Move codespell configuration into setup.cfg --- .codespellrc | 7 ------- .gitignore | 1 - setup.cfg | 5 +++++ 3 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc deleted file mode 100644 index b500944e03..0000000000 --- a/.codespellrc +++ /dev/null @@ -1,7 +0,0 @@ -# Ref: https://github.com/codespell-project/codespell#using-a-config-file -[codespell] -skip = .git,*.svg,*.css,*.min.*,*-min.js,.codespellrc,locale,static,kickstarter-announcement.md -check-hidden = true -# skip lines with ú as they might contain non-english words -ignore-regex = \bMalcom Tredinnick\b|^.{500,}$|.*ú.* -ignore-words-list = fo,crate diff --git a/.gitignore b/.gitignore index ef88e6411c..641714d163 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ *.db *~ .* -!.codespellrc *.py.bak diff --git a/setup.cfg b/setup.cfg index 487d99db91..e7e288816f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,3 +29,8 @@ include = rest_framework/*,tests/* exclude_lines = pragma: no cover raise NotImplementedError + +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = */kickstarter-announcement.md,*.js,*.map,*.po +ignore-words-list = fo,malcom,ser