From f3541a296860d5601cf371f51b60d6c9d9cfba33 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 26 Jan 2024 09:32:43 -0500 Subject: [PATCH] Support setup.cfg for configuration of codespell --- codespellit | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/codespellit b/codespellit index 5efca8a..820d887 100755 --- a/codespellit +++ b/codespellit @@ -88,6 +88,18 @@ check-hidden = true ${ignore_regex_prefix}ignore-regex = '$ignore_regex' # ignore-words-list = '' EOF +elif [ -e setup.cfg ]; then + config="setup.cfg" + # Then config file as the "last" commit we can amend if needed + cat >> setup.cfg <