diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 354f955c4b2..cbdcf50f64b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -92,6 +92,8 @@ repos: - id: codespell # Due to a current limitation of configuration files, # we can specify two dicts only on the CLI. + # You can update the contents of the exclude-file codespell-lines-ignore with the script + # dev/tools/codespell/addCodespellIgnores.sh args: - -D - '-' @@ -99,6 +101,10 @@ repos: - dev/tools/codespell/codespell-dict.txt - -I - dev/tools/codespell/codespell-ignore.txt + - X + - dev/tools/codespell/codespell-lines-ignore.txt + - --uri-ignore-words-list + - ned exclude: (?x)^(.phan/stubs/.*)$ additional_dependencies: [tomli] - alias: codespell-lang-en_US @@ -118,6 +124,10 @@ repos: - "creat,unitl,alltime,datas,referers" - -I - dev/tools/codespell/codespell-ignore.txt + - X + - dev/tools/codespell/codespell-lines-ignore.txt + - --uri-ignore-words-list + - ned # Check some shell scripts - repo: https://github.com/shellcheck-py/shellcheck-py