Commit 8bb2826f authored by georg's avatar georg Committed by jvoisin

CI: Add job to run codespell, a spell checking software

parent 5c33b290
Pipeline #26008 passed with stages
in 2 minutes and 21 seconds
......@@ -13,6 +13,15 @@ linting:bandit:
- bandit -r ./nautilus/ --format txt --skip B101
- bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
image: $CONTAINER_REGISTRY:linting
stage: linting
# Run codespell to check for spelling errors; ignore errors about binary
# files, use a config with ignored words and exclude the git directory,
# which might contain false positives
- codespell -q 2 -I utils/ci/codespell/ignored_words.txt -S .git
image: $CONTAINER_REGISTRY:linting
stage: linting
......@@ -56,7 +56,7 @@ def get_parser(filename: str) -> Tuple[Optional[T], Optional[str]]:
return parser_class(filename), mtype
except ValueError as e:"Got an exception when trying to instanciate ""Got an exception when trying to instantiate "
"%s for %s: %s", parser_class, filename, e)
return None, mtype
return None, mtype
# Words to be ignored by codespell.
# Put one word per line and sort alphabetically.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment