Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProMod3
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
ProMod3
Commits
cf644cf9
Commit
cf644cf9
authored
Sep 15, 2015
by
Bienchen
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into pipeline
parents
4fd99de1
549bc614
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
extras/pre_commit/pm3_csc/filecheck/python.py
+5
-1
5 additions, 1 deletion
extras/pre_commit/pm3_csc/filecheck/python.py
extras/pre_commit/pm3_csc/git.py
+1
-0
1 addition, 0 deletions
extras/pre_commit/pm3_csc/git.py
with
6 additions
and
1 deletion
extras/pre_commit/pm3_csc/filecheck/python.py
+
5
−
1
View file @
cf644cf9
...
@@ -70,7 +70,11 @@ class Python(base.FileCheck):
...
@@ -70,7 +70,11 @@ class Python(base.FileCheck):
'
unused-argument
'
:
'
unused-argument
'
:
"
Line %(line)s: Argument defined which is not used by the
"
+
"
Line %(line)s: Argument defined which is not used by the
"
+
"
function/ method. This should be avoided since it may create
"
+
"
function/ method. This should be avoided since it may create
"
+
"
unnecessary dependencies inside the calling code.
"
"
unnecessary dependencies inside the calling code.
"
,
'
no-self-use
'
:
"
Line %(line)s: This class method does not use
'
self
'
, its own
"
+
"
instance. Therefore it should be a
'
@staticmethod
'
or not a
"
+
"
member of this class at all.
"
}
}
if
msg
[
1
]
not
in
msg_dict
.
keys
():
if
msg
[
1
]
not
in
msg_dict
.
keys
():
pm3_csc
.
FailMsg
(
"
Found a pylint message for the first time:
"
+
pm3_csc
.
FailMsg
(
"
Found a pylint message for the first time:
"
+
...
...
...
...
This diff is collapsed.
Click to expand it.
extras/pre_commit/pm3_csc/git.py
+
1
−
0
View file @
cf644cf9
...
@@ -98,6 +98,7 @@ def _GetFileType(filepath):
...
@@ -98,6 +98,7 @@ def _GetFileType(filepath):
'
CMakeLists.txt
'
:
'
cmake
'
,
'
CMakeLists.txt
'
:
'
cmake
'
,
'
.cmake
'
:
'
cmake
'
,
'
.cmake
'
:
'
cmake
'
,
'
.pdb
'
:
'
ukn
'
,
'
.pdb
'
:
'
ukn
'
,
'
.pdb.gz
'
:
'
ukn
'
,
'
.fasta
'
:
'
ukn
'
,
'
.fasta
'
:
'
ukn
'
,
'
.fas
'
:
'
ukn
'
}
'
.fas
'
:
'
ukn
'
}
for
ext
in
known_extensions
.
keys
():
for
ext
in
known_extensions
.
keys
():
...
...
...
...
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
sign in
to comment