Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
8bb2826f
Commit
8bb2826f
authored
5 years ago
by
georg
Committed by
jvoisin
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: Add job to run codespell, a spell checking software
parent
5c33b290
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+9
-0
9 additions, 0 deletions
.gitlab-ci.yml
libmat2/parser_factory.py
+1
-1
1 addition, 1 deletion
libmat2/parser_factory.py
utils/ci/codespell/ignored_words.txt
+3
-0
3 additions, 0 deletions
utils/ci/codespell/ignored_words.txt
with
13 additions
and
1 deletion
.gitlab-ci.yml
+
9
−
0
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
...
...
This diff is collapsed.
Click to expand it.
libmat2/parser_factory.py
+
1
−
1
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
This diff is collapsed.
Click to expand it.
utils/ci/codespell/ignored_words.txt
0 → 100644
+
3
−
0
View file @
8bb2826f
# Words to be ignored by codespell.
# Put one word per line and sort alphabetically.
process'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment