Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
57aad2f9
Commit
57aad2f9
authored
Apr 09, 2021
by
Wolfgang Rohdewald
Browse files
pylint: locally suppress duplicate code warnings
parent
3982f39d
Pipeline
#130786
failed with stage
in 52 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/chat.py
View file @
57aad2f9
...
...
@@ -45,6 +45,7 @@ class ChatModel(QAbstractTableModel):
def
rowCount
(
self
,
parent
=
None
):
"""how many lines are in the model?"""
if
parent
and
parent
.
isValid
():
# similar in tables.py
# we have only top level items
return
0
return
len
(
self
.
chatLines
)
...
...
src/games.py
View file @
57aad2f9
...
...
@@ -58,6 +58,7 @@ class GamesModel(QAbstractTableModel):
or
column
<
0
or
row
>=
self
.
rowCount
(
parent
)
or
column
>=
self
.
columnCount
(
parent
)):
# similar in tree.py
return
QModelIndex
()
return
self
.
createIndex
(
row
,
column
,
0
)
...
...
src/pylintrc
View file @
57aad2f9
...
...
@@ -265,7 +265,8 @@ defining-attr-methods=__init__,__new__,setUp,setupUi,setupActions,setupUILastTil
min-similarity-lines=8
# Ignore comments when computing similarities.
ignore-comments=yes
# this way I can locally disable this with a comment
ignore-comments=no
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment