Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mat2
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jvoisin
mat2
Commits
8bb2826f
Commit
8bb2826f
authored
Jul 22, 2019
by
georg
Committed by
jvoisin
Jul 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Add job to run codespell, a spell checking software
parent
5c33b290
Pipeline
#26008
passed with stages
in 2 minutes and 21 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
.gitlab-ci.yml
.gitlab-ci.yml
+9
-0
libmat2/parser_factory.py
libmat2/parser_factory.py
+1
-1
utils/ci/codespell/ignored_words.txt
utils/ci/codespell/ignored_words.txt
+3
-0
No files found.
.gitlab-ci.yml
View file @
8bb2826f
...
...
@@ -13,6 +13,15 @@ linting:bandit:
-
bandit -r ./nautilus/ --format txt --skip B101
-
bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
linting:codespell:
image
:
$CONTAINER_REGISTRY:linting
stage
:
linting
script
:
# 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
linting:pylint:
image
:
$CONTAINER_REGISTRY:linting
stage
:
linting
...
...
libmat2/parser_factory.py
View file @
8bb2826f
...
...
@@ -56,7 +56,7 @@ def get_parser(filename: str) -> Tuple[Optional[T], Optional[str]]:
try
:
return
parser_class
(
filename
),
mtype
except
ValueError
as
e
:
logging
.
info
(
"Got an exception when trying to instan
c
iate "
logging
.
info
(
"Got an exception when trying to instan
t
iate "
"
%
s for
%
s:
%
s"
,
parser_class
,
filename
,
e
)
return
None
,
mtype
return
None
,
mtype
utils/ci/codespell/ignored_words.txt
0 → 100644
View file @
8bb2826f
# Words to be ignored by codespell.
# Put one word per line and sort alphabetically.
process'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment