From 69de3f29d0ba98136aace08e6fa27aa9ec15a0fa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 14 Jan 2024 18:56:01 +0100 Subject: [PATCH] Try move setup in config file --- .pre-commit-config.yaml | 10 +++++++++- pyproject.toml | 5 ----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb692db592e..354f955c4b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -92,7 +92,13 @@ repos: - id: codespell # Due to a current limitation of configuration files, # we can specify two dicts only on the CLI. - args: [-D, '-', -D, dev/tools/codespell/codespell-dict.txt] + args: + - -D + - '-' + - -D + - dev/tools/codespell/codespell-dict.txt + - -I + - dev/tools/codespell/codespell-ignore.txt exclude: (?x)^(.phan/stubs/.*)$ additional_dependencies: [tomli] - alias: codespell-lang-en_US @@ -110,6 +116,8 @@ repos: - informations,medias,uptodate,reenable,crypted,developpers - -L - "creat,unitl,alltime,datas,referers" + - -I + - dev/tools/codespell/codespell-ignore.txt # Check some shell scripts - repo: https://github.com/shellcheck-py/shellcheck-py diff --git a/pyproject.toml b/pyproject.toml index 96d1e2402bc..1f84aaec799 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,12 +2,7 @@ requires = ["setuptools>=61.2"] build-backend = "setuptools.build_meta" -[project] -dynamic = ["version"] - [tool.codespell] -ignore-words = "./dev/tools/codespell/codespell-ignore.txt" - skip = "*/langs/*,*/build/exe/*,**.log,*.pdf,*dev/resources/*,*.phar,*.z,*.gz,*.sql,*htdocs/includes/*,*/textiso.txt,*.js,*README-*,*build/rpm/*spec,*build/pad/*ml,*htdocs/includes/phpoffice/*,*htdocs/includes/tecnickcom/*,*dev/initdemo/removeconfdemo.sh,*dev/tools/codespell/*,*pyproject.toml,*build/exe/*,*fontawe*,*htdocs/theme/*/flags-sprite.inc.php,*dev/setup/codetemplates/codetemplates.xml,*/php.ini,*/html_cerfafr.*,*/lessc.class.php,*.asciidoc,*.xml,*opensurvey/css/style.css" quiet-level=2