Skip to content

Commit f0e80c1

Browse files
authored
Merge pull request Z4nzu#258 from cclauss/patch-1
Make mypy a mandatory test
2 parents 5e2ce16 + fb4f05a commit f0e80c1

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/lint_python.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v3
8+
- uses: actions/setup-python@v4
9+
with:
10+
python-version: '3.x'
911
- run: pip install --upgrade pip wheel
1012
- run: pip install bandit black codespell flake8 flake8-bugbear flake8-return
1113
flake8-comprehensions isort mypy pytest pyupgrade safety
@@ -15,9 +17,9 @@ jobs:
1517
- run: flake8 --ignore=E124,E128,E225,E251,E302,R502,R503,W291,W293,W605
1618
--max-complexity=11 --max-line-length=265 --show-source --statistics .
1719
- run: isort --check-only --profile black . || true
18-
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
20+
- run: pip install -r requirement.txt || pip install -r requirements.txt || pip install --editable . || pip install . || true
1921
- run: mkdir --parents --verbose .mypy_cache
20-
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
22+
- run: mypy --ignore-missing-imports --install-types --non-interactive .
2123
- run: pytest . || true
2224
- run: pytest --doctest-modules . || true
2325
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true

generate_readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from core import HackingTool
55
from core import HackingToolsCollection
6-
from main import all_tools
6+
from hackingtool import all_tools
77

88

99
def sanitize_anchor(s):

hackingtool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ def show_info(self):
105105
if not os.path.exists(archive):
106106
os.mkdir(archive)
107107
os.chdir(archive)
108-
all_tools = AllTools()
109-
all_tools.show_options()
108+
AllTools().show_options()
110109

111110
# If not Linux and probably Windows
112111
elif system() == "Windows":
113112
print(
114-
"\033[91m Please Run This Tool On A Debian System For Best Results " "\e[00m")
113+
r"\033[91m Please Run This Tool On A Debian System For Best Results\e[00m"
114+
)
115115
sleep(2)
116116
webbrowser.open_new_tab("https://tinyurl.com/y522modc")
117117

tools/forensic_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
class Autopsy(HackingTool):
99
TITLE = "Autopsy"
1010
DESCRIPTION = "Autopsy is a platform that is used by Cyber Investigators.\n" \
11-
"[!] Works in any Os\n" \
12-
"[!] Recover Deleted Files from any OS & MEdia \n" \
11+
"[!] Works in any OS\n" \
12+
"[!] Recover Deleted Files from any OS & Media \n" \
1313
"[!] Extract Image Metadata"
14-
RUN_COMMANDS = "sudo autopsy"
14+
RUN_COMMANDS = ["sudo autopsy"]
1515

1616
def __init__(self):
1717
super(Autopsy, self).__init__(installable = False)

0 commit comments

Comments
 (0)