diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index b692a76..8dd0201 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -14,4 +14,7 @@ jobs:
with:
python-version: "3.11"
- name: flake8 Lint
- uses: py-actions/flake8@v2
\ No newline at end of file
+ uses: py-actions/flake8@v2
+ with:
+ ignore: "E266,W293"
+ max-line-length: "200"
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 35410ca..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# 默认忽略的文件
-/shelf/
-/workspace.xml
-# 基于编辑器的 HTTP 客户端请求
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/Phishpedia.iml b/.idea/Phishpedia.iml
deleted file mode 100644
index ec63674..0000000
--- a/.idea/Phishpedia.iml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/deployment.xml b/.idea/deployment.xml
deleted file mode 100644
index 3e51933..0000000
--- a/.idea/deployment.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
deleted file mode 100644
index 105ce2d..0000000
--- a/.idea/inspectionProfiles/profiles_settings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1dd..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/GUI/ui.py b/GUI/ui.py
index 5a281f0..fa8b60e 100644
--- a/GUI/ui.py
+++ b/GUI/ui.py
@@ -119,7 +119,7 @@ def set_dynamic_font_size(self):
font.setPointSizeF(font_size)
for widget in self.findChildren(QLabel) + self.findChildren(QLineEdit) + self.findChildren(QPushButton) + [
- self.result_display]:
+ self.result_display]:
widget.setFont(font)
def init_phish_test_page(self):
diff --git a/phishpedia.py b/phishpedia.py
index f704123..596138c 100644
--- a/phishpedia.py
+++ b/phishpedia.py
@@ -8,7 +8,7 @@
from logo_recog import pred_rcnn, vis
from logo_matching import check_domain_brand_inconsistency
# from text_recog import check_email_credential_taking
-import pickle
+# import pickle
from tqdm import tqdm
import re
diff --git a/utils.py b/utils.py
index 5ab87e2..fedbc63 100644
--- a/utils.py
+++ b/utils.py
@@ -12,7 +12,7 @@ def resolution_alignment(img1, img2):
w1, h1 = img1.size
w2, h2 = img2.size
w_min, h_min = min(w1, w2), min(h1, h2)
- if w_min == 0 or h_min == 0: ## something wrong, stop resizing
+ if w_min == 0 or h_min == 0: # something wrong, stop resizing
return img1, img2
if w_min < h_min:
img1_resize = img1.resize((int(w_min), math.ceil(h1 * (w_min / w1)))) # ceiling to prevent rounding to 0