Skip to content

Commit 9cc2cdd

Browse files
committed
Fixing flake8 issues
1 parent e0457dd commit 9cc2cdd

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

run_tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
.venv\Scripts\python.exe run_tests.py -q
55
"""
66
import sys
7+
import pytest
78

89
# Ensure the src directory is first on sys.path so `import torbot` works
910
sys.path.insert(0, "src")
1011

11-
import pytest
12-
13-
1412
if __name__ == "__main__":
1513
args = sys.argv[1:] or ["-q"]
1614
raise SystemExit(pytest.main(args))

src/torbot/modules/info.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from torbot.modules.linktree import LinkTree
1515

16-
1716
keys = set() # high entropy strings, prolly secret keys
1817
files = set() # pdf, css, png etc.
1918
intel = set() # emails, website accounts, aws buckets etc.
@@ -134,7 +133,7 @@ def get_robots_txt(client: httpx.Client, target: str, response: str) -> None:
134133
target = "{0.scheme}://{0.netloc}/".format(urlsplit(url))
135134
client.get(target + "robots.txt")
136135
print(target + "robots.txt")
137-
136+
138137
matches = re.findall(r"Allow: (.*)|Disallow: (.*)", response.text)
139138
for match in matches:
140139
match = "".join(match)

tests/test_linktree_tree.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
import json
1111
import tempfile
1212
from pathlib import Path
13-
from unittest.mock import Mock, patch
13+
from unittest.mock import patch
1414

1515
import pytest
16-
from bs4 import BeautifulSoup
1716

1817
from torbot.modules.linktree import LinkTree, LinkNode, parse_hostname
1918

0 commit comments

Comments
 (0)