summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml9
-rw-r--r--libmat2/parser_factory.py2
-rw-r--r--utils/ci/codespell/ignored_words.txt3
3 files changed, 13 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 06ab608..4d1f844 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,15 @@ linting:bandit:
13 - bandit -r ./nautilus/ --format txt --skip B101 13 - bandit -r ./nautilus/ --format txt --skip B101
14 - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 14 - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
15 15
16linting:codespell:
17 image: $CONTAINER_REGISTRY:linting
18 stage: linting
19 script:
20 # Run codespell to check for spelling errors; ignore errors about binary
21 # files, use a config with ignored words and exclude the git directory,
22 # which might contain false positives
23 - codespell -q 2 -I utils/ci/codespell/ignored_words.txt -S .git
24
16linting:pylint: 25linting:pylint:
17 image: $CONTAINER_REGISTRY:linting 26 image: $CONTAINER_REGISTRY:linting
18 stage: linting 27 stage: linting
diff --git a/libmat2/parser_factory.py b/libmat2/parser_factory.py
index 6150b26..23529db 100644
--- a/libmat2/parser_factory.py
+++ b/libmat2/parser_factory.py
@@ -56,7 +56,7 @@ def get_parser(filename: str) -> Tuple[Optional[T], Optional[str]]:
56 try: 56 try:
57 return parser_class(filename), mtype 57 return parser_class(filename), mtype
58 except ValueError as e: 58 except ValueError as e:
59 logging.info("Got an exception when trying to instanciate " 59 logging.info("Got an exception when trying to instantiate "
60 "%s for %s: %s", parser_class, filename, e) 60 "%s for %s: %s", parser_class, filename, e)
61 return None, mtype 61 return None, mtype
62 return None, mtype 62 return None, mtype
diff --git a/utils/ci/codespell/ignored_words.txt b/utils/ci/codespell/ignored_words.txt
new file mode 100644
index 0000000..02ae70c
--- /dev/null
+++ b/utils/ci/codespell/ignored_words.txt
@@ -0,0 +1,3 @@
1# Words to be ignored by codespell.
2# Put one word per line and sort alphabetically.
3process'