From dd354a4a832aa1473e322fcc6fa0dc6edcd933ad Mon Sep 17 00:00:00 2001 From: Rath Pascal Date: Fri, 6 Dec 2024 22:26:05 +0100 Subject: [PATCH] lint fixes --- .pylintrc | 2 +- ja4db-bots.py | 2 ++ ja4db-dedupe.py | 2 ++ ja4db-to-map.py | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 38439df..c857a1e 100644 --- a/.pylintrc +++ b/.pylintrc @@ -439,7 +439,7 @@ disable=raw-checker-failed, use-symbolic-message-instead, use-implicit-booleaness-not-comparison-to-string, use-implicit-booleaness-not-comparison-to-zero, - C0114, C0115, C0116, + C0114, C0115, C0116, C0103, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/ja4db-bots.py b/ja4db-bots.py index bf08674..d8347f3 100644 --- a/ja4db-bots.py +++ b/ja4db-bots.py @@ -9,6 +9,8 @@ # download raw db: # curl -s https://ja4db.com/api/read/ -o ja4db.json +# pylint: disable=R0801 + from re import sub as regex_replace from json import loads as json_loads from json import dumps as json_dumps diff --git a/ja4db-dedupe.py b/ja4db-dedupe.py index 80d6e9a..8fb4f1b 100644 --- a/ja4db-dedupe.py +++ b/ja4db-dedupe.py @@ -10,6 +10,8 @@ # download raw db: # curl -s https://ja4db.com/api/read/ -o ja4db.json +# pylint: disable=R0801 + from collections import Counter from re import sub as regex_replace from json import loads as json_loads diff --git a/ja4db-to-map.py b/ja4db-to-map.py index 176c239..78aa64c 100644 --- a/ja4db-to-map.py +++ b/ja4db-to-map.py @@ -12,7 +12,8 @@ from json import loads as json_loads DEBUG = False -# see: https://www.haproxy.com/blog/introduction-to-haproxy-maps 'Empty lines and extra whitespace between words are ignored' +# see: https://www.haproxy.com/blog/introduction-to-haproxy-maps +# 'Empty lines and extra whitespace between words are ignored' WHITESPACE_REPLACE = '_' if not Path('ja4_dedupe.json').is_file():