Skip to content

Commit

Permalink
update lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Nov 17, 2024
1 parent 91f43d2 commit 7bf725b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ max-public-methods=20
max-returns=6

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

# Minimum number of public methods for a class (see R0903).
min-public-methods=2
Expand Down
1 change: 1 addition & 0 deletions reporting/in_ip_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ipaddress import IPv4Address, IPv6Address, IPv4Network, IPv6Network, AddressValueError, NetmaskValueError


# pylint: disable=R0915
def _load_ip_list(ip_list_file: str) -> dict:
safe_ips = []
safe_nets = []
Expand Down
2 changes: 1 addition & 1 deletion src/builder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from write import write_ip_asn, write_nets


# pylint: disable=R0912,R0914
# pylint: disable=R0912,R0914,R0915
def build_dbs_ip_asn(reports: dict, ptrs: dict, lookup_lists: dict, networks: dict):
for key, ip_list in {
'all': reports['all'],
Expand Down
1 change: 1 addition & 0 deletions src/builder/reputation.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def _save_net_report(dst: dict, n: str, r: dict):
dst[n][r['cat']] += 1


# pylint: disable=R0915
def reports_by_network_reputation(reports: list[dict]) -> dict:
rep_key = 'reputation'
reported_nets_all = {}
Expand Down
1 change: 1 addition & 0 deletions src/builder/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from util import log


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

Expand Down

0 comments on commit 7bf725b

Please sign in to comment.