From 00dd41f27a1cb8eb81f89aa75feba1ffdd02edea Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 4 Sep 2024 16:38:36 +0200 Subject: [PATCH] Make the name generic now that it's used by multiple tools --- .pre-commit-config.yaml | 3 +++ .pyenchant_pylint_custom_dict.txt => custom_dict.txt | 8 ++++---- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) rename .pyenchant_pylint_custom_dict.txt => custom_dict.txt (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 808db69d35..40edf8d353 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,9 @@ repos: hooks: - id: trailing-whitespace exclude: tests(/\w*)*/functional/t/trailing_whitespaces.py|tests/pyreverse/data/.*.html|doc/data/messages/t/trailing-whitespace/bad.py + # - id: file-contents-sorter # commented out because it does not preserve comments order + # args: ["--ignore-case", "--unique"] + # files: "custom_dict.txt" - id: end-of-file-fixer exclude: | (?x)^( diff --git a/.pyenchant_pylint_custom_dict.txt b/custom_dict.txt similarity index 100% rename from .pyenchant_pylint_custom_dict.txt rename to custom_dict.txt index f986c814aa..576ef703e0 100644 --- a/.pyenchant_pylint_custom_dict.txt +++ b/custom_dict.txt @@ -16,8 +16,8 @@ ascii asend assignattr assignname -ast AST +ast astroid async asynccontextmanager @@ -62,8 +62,8 @@ codecs col's conf config -Const const +Const contextlib contextmanager contravariance @@ -150,8 +150,8 @@ importfrom importnode importschecker InferenceError -INI ini +INI init initializer inlinevar @@ -365,8 +365,8 @@ unary unflattens unhandled unicode -Uninferable uninferable +Uninferable unittest unraisablehook untriggered diff --git a/pyproject.toml b/pyproject.toml index e57e2d53f9..475eeffe95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -195,7 +195,7 @@ ignore = [ convention = "pep257" [tool.codespell] -ignore-words = [".pyenchant_pylint_custom_dict.txt"] +ignore-words = ["custom_dict.txt"] # Disabled the spelling files for obvious reason, but also, # the test file with typing extension imported as 'te' and: