mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
# Fix: pre-commit & codespell configuration. When codespell is run from the CLI it gets its configuration from pyproject.toml or .codespellrc . `pyproject.toml` was used because other tools also use that while .codespellrc is specific. A typo was fixed in the pre-commit configuration. The end of file fixer was limited to yaml files, but that was mainly to fix the yamllint errors that were reported in ci. This hook can be applied on the files this normally applies to without requiring it (not in ci, only local).
29 lines
1.2 KiB
TOML
29 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.2"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.codespell]
|
|
# The configuration must be kept here to ensure that
|
|
# `codespell` can be run as a standalone program from the CLI
|
|
# with the appropriate default options.
|
|
|
|
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
|
|
ignore-regex = '\\[fnrstv]'
|
|
builtin = "clear,rare,informal,usage,code,names"
|
|
|
|
ignore-words = "dev/tools/codespell/codespell-ignore.txt"
|
|
exclude-file = "dev/tools/codespell/codespell-lines-ignore.txt"
|
|
uri-ignore-words-list="ned"
|
|
|
|
# For future reference: it is not currently possible to specify
|
|
# the standard dictionnary and the custom dictionnary in the configuration
|
|
# file
|
|
# D = "-"
|
|
# dictionary = "dev/tools/codespell/codespell-dict.txt"
|
|
|
|
|
|
[tool.setuptools]
|
|
include-package-data = false
|