diff --git a/.codespell-ignore b/.codespell-ignore new file mode 100644 index 0000000..2b66944 --- /dev/null +++ b/.codespell-ignore @@ -0,0 +1,4 @@ +# Codespell wants "socioeconomic" which seems to be the standard spelling. +# But we use the word in our code of conduct which is the contributor covenant. +# Let's not modify it if we don't have to. +socio-economic diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c957c84..db11880 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,7 @@ repos: rev: v2.3.0 hooks: - id: codespell + args: [--ignore-words=.codespell-ignore] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index ef35cf3..9011865 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -107,3 +107,11 @@ enable_error_code = [ "truthy-bool", ] warn_unreachable = true + +[tool.codespell] +ignore-words-list = [ + # Codespell wants "socioeconomic" which seems to be the standard spelling. + # But we use the word in our code of conduct which is the contributor covenant. + # Let's not modify it if we don't have to. + "socio-economic", +]