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
6d93cf93
Commit
6d93cf93
authored
2 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated pylint checks
parent
b1a16b33
No related branches found
No related tags found
No related merge requests found
Pipeline
#110430
failed
2 years ago
Stage: linting
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libmat2/archive.py
+3
-3
3 additions, 3 deletions
libmat2/archive.py
libmat2/web.py
+0
-1
0 additions, 1 deletion
libmat2/web.py
nautilus/mat2.py
+1
-1
1 addition, 1 deletion
nautilus/mat2.py
with
4 additions
and
5 deletions
libmat2/archive.py
+
3
−
3
View file @
6d93cf93
...
...
@@ -72,20 +72,20 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
def
_specific_cleanup
(
self
,
full_path
:
str
)
->
bool
:
"""
This method can be used to apply specific treatment
to files present in the archive.
"""
# pylint: disable=unused-argument
,no-self-use
# pylint: disable=unused-argument
return
True
# pragma: no cover
def
_specific_get_meta
(
self
,
full_path
:
str
,
file_path
:
str
)
->
dict
[
str
,
Any
]:
"""
This method can be used to extract specific metadata
from files present in the archive.
"""
# pylint: disable=unused-argument
,no-self-use
# pylint: disable=unused-argument
return
{}
# pragma: no cover
def
_final_checks
(
self
)
->
bool
:
"""
This method is invoked after the file has been cleaned,
allowing to run final verifications.
"""
# pylint: disable=unused-argument
,no-self-use
# pylint: disable=unused-argument
return
True
@staticmethod
...
...
This diff is collapsed.
Click to expand it.
libmat2/web.py
+
0
−
1
View file @
6d93cf93
...
...
@@ -103,7 +103,6 @@ class _HTMLParser(parser.HTMLParser):
self
.
tag_required_blocklist
=
required_blocklisted_tags
self
.
tag_blocklist
=
blocklisted_tags
# pylint: disable=R0201
def
error
(
self
,
message
):
# pragma: no cover
"""
Amusingly, Python
'
s documentation doesn
'
t mention that this
function needs to be implemented in subclasses of the parent class
...
...
This diff is collapsed.
Click to expand it.
nautilus/mat2.py
+
1
−
1
View file @
6d93cf93
...
...
@@ -10,7 +10,7 @@ so we're not allowed to call anything Gtk-related outside of the main
thread, so we
'
ll have to resort to using a `queue` to pass
"
messages
"
around.
"""
# pylint: disable=no-name-in-module,unused-argument,
no-self-use,
import-error
# pylint: disable=no-name-in-module,unused-argument,import-error
import
queue
import
threading
...
...
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