Fix: bandit pre-commit hook exclude regex 32/67832/2
authorGuillaume Lambert <guillaume.lambert@orange.com>
Thu, 27 May 2021 19:46:58 +0000 (21:46 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Thu, 27 May 2021 19:56:16 +0000 (21:56 +0200)
commitc0ce4e5654573e4b523401f43a20acaef6a6d9b1
tree6df8f23f818ada0f6a306f3294d731a26fa9a93d
parentb8685a6d2e1ae1674cf6d77dcadce3e111aaa772
Fix: bandit pre-commit hook exclude regex

The 'exclude' field in pre-commit hook is a regex, not a glob,
as it is advertised by pre-commit runtime warnings.
"tests/*" matches "tests", "tests/" or "tests//...///" but also any file
or folder, not necessarily at the root of the project, that contains
"tests" in its name.
The right regex to ignore the tests folder at project root is "^test/"

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I74e22bff98c78a7d0dbabac81fdda7b07ed50d4f
.pre-commit-config.yaml