Skip to content

Commit ff3df88

Browse files
authored
Merge pull request #113 from maxmind/greg/update-pylintrc
Update pylint config
2 parents 3142a83 + 7a3f82b commit ff3df88

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

.pylintrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

geoip2/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ def __repr__(self) -> str:
339339
def network(self) -> Optional[Union[ipaddress.IPv4Network, ipaddress.IPv6Network]]:
340340
"""The network for the record"""
341341
# This code is duplicated for performance reasons
342-
# pylint: disable=duplicate-code
343342
network = self._network
344343
if isinstance(network, (ipaddress.IPv4Network, ipaddress.IPv6Network)):
345344
return network

geoip2/records.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,11 +864,10 @@ def __init__(
864864
self._network = network
865865
self._prefix_len = prefix_len
866866

867-
# This code is duplicated for performance reasons
868-
# pylint: disable=duplicate-code
869867
@property
870868
def network(self) -> Optional[Union[ipaddress.IPv4Network, ipaddress.IPv6Network]]:
871869
"""The network for the record"""
870+
# This code is duplicated for performance reasons
872871
network = self._network
873872
if isinstance(network, (ipaddress.IPv4Network, ipaddress.IPv6Network)):
874873
return network

pylintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ max-line-length = 88
88
[wheel]
99
universal = 1
1010

11+
[pylint.message_control]
12+
disable = duplicate-code
13+
1114
[tox:tox]
1215
envlist = py36, py37, py38, py39, mypy
1316

0 commit comments

Comments
 (0)