Skip to content

Commit 7bf725b

Browse files
committed
update lint config
1 parent 91f43d2 commit 7bf725b

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ max-public-methods=20
317317
max-returns=6
318318

319319
# Maximum number of statements in function / method body.
320-
max-statements=50
320+
max-statements=20
321321

322322
# Minimum number of public methods for a class (see R0903).
323323
min-public-methods=2

reporting/in_ip_list.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ipaddress import IPv4Address, IPv6Address, IPv4Network, IPv6Network, AddressValueError, NetmaskValueError
77

88

9+
# pylint: disable=R0915
910
def _load_ip_list(ip_list_file: str) -> dict:
1011
safe_ips = []
1112
safe_nets = []

src/builder/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from write import write_ip_asn, write_nets
1111

1212

13-
# pylint: disable=R0912,R0914
13+
# pylint: disable=R0912,R0914,R0915
1414
def build_dbs_ip_asn(reports: dict, ptrs: dict, lookup_lists: dict, networks: dict):
1515
for key, ip_list in {
1616
'all': reports['all'],

src/builder/reputation.py

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def _save_net_report(dst: dict, n: str, r: dict):
6464
dst[n][r['cat']] += 1
6565

6666

67+
# pylint: disable=R0915
6768
def reports_by_network_reputation(reports: list[dict]) -> dict:
6869
rep_key = 'reputation'
6970
reported_nets_all = {}

src/builder/write.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from util import log
88

99

10+
# pylint: disable=R0915
1011
def write_ip_asn(key: str, mmdb4: MMDBWriter, mmdb6: MMDBWriter, json4: dict, json6: dict, asn_reports: dict):
1112
log(f"Writing type '{key}'")
1213

0 commit comments

Comments
 (0)