Skip to content

Commit 141354f

Browse files
pylint: disable duplicate-code cases in code
Disable all cases of R0801 duplicate-code in code. ConnectionPool, MeshConnection, Connection and Tarantool server have similar API, thus they have similar init arguments. Part of #270
1 parent ba58604 commit 141354f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
All configuration values have a default; values that are commented out
1111
serve to show the default.
1212
"""
13-
# pylint: disable=invalid-name,redefined-builtin
13+
# pylint: disable=invalid-name,redefined-builtin,duplicate-code
1414

1515
import tarantool
1616

tarantool/connection_pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class ConnectionPool(ConnectionInterface):
370370
>>> resp
371371
- ['AAAA', 'Alpha']
372372
"""
373-
# pylint: disable=too-many-public-methods
373+
# pylint: disable=too-many-public-methods,duplicate-code
374374

375375
def __init__(self,
376376
addrs,

tarantool/mesh_connection.py

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ class MeshConnection(Connection):
267267
"""
268268
Represents a connection to a cluster of Tarantool servers.
269269
"""
270+
# pylint: disable=duplicate-code
270271

271272
def __init__(self, host=None, port=None,
272273
user=None,

test/suites/lib/tarantool_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class TarantoolServer():
5555
"""
5656
Class to start up a new Tarantool server.
5757
"""
58-
# pylint: disable=too-many-instance-attributes,too-many-arguments
58+
# pylint: disable=too-many-instance-attributes,too-many-arguments,duplicate-code
5959

6060
default_tarantool = {
6161
"bin": "tarantool",

0 commit comments

Comments
 (0)