You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2025-06-20 06:15:54 +02:00
Merge pull request #258 from cclauss/patch-1
Make mypy a mandatory test
This commit is contained in:
8
.github/workflows/lint_python.yml
vendored
8
.github/workflows/lint_python.yml
vendored
@ -5,7 +5,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
- run: pip install --upgrade pip wheel
|
- run: pip install --upgrade pip wheel
|
||||||
- run: pip install bandit black codespell flake8 flake8-bugbear flake8-return
|
- run: pip install bandit black codespell flake8 flake8-bugbear flake8-return
|
||||||
flake8-comprehensions isort mypy pytest pyupgrade safety
|
flake8-comprehensions isort mypy pytest pyupgrade safety
|
||||||
@ -15,9 +17,9 @@ jobs:
|
|||||||
- run: flake8 --ignore=E124,E128,E225,E251,E302,R502,R503,W291,W293,W605
|
- run: flake8 --ignore=E124,E128,E225,E251,E302,R502,R503,W291,W293,W605
|
||||||
--max-complexity=11 --max-line-length=265 --show-source --statistics .
|
--max-complexity=11 --max-line-length=265 --show-source --statistics .
|
||||||
- run: isort --check-only --profile black . || true
|
- run: isort --check-only --profile black . || true
|
||||||
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
|
- run: pip install -r requirement.txt || pip install -r requirements.txt || pip install --editable . || pip install . || true
|
||||||
- run: mkdir --parents --verbose .mypy_cache
|
- run: mkdir --parents --verbose .mypy_cache
|
||||||
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
|
- run: mypy --ignore-missing-imports --install-types --non-interactive .
|
||||||
- run: pytest . || true
|
- run: pytest . || true
|
||||||
- run: pytest --doctest-modules . || true
|
- run: pytest --doctest-modules . || true
|
||||||
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
|
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
|
||||||
|
@ -3,7 +3,7 @@ import re
|
|||||||
|
|
||||||
from core import HackingTool
|
from core import HackingTool
|
||||||
from core import HackingToolsCollection
|
from core import HackingToolsCollection
|
||||||
from main import all_tools
|
from hackingtool import all_tools
|
||||||
|
|
||||||
|
|
||||||
def sanitize_anchor(s):
|
def sanitize_anchor(s):
|
||||||
|
@ -105,13 +105,13 @@ if __name__ == "__main__":
|
|||||||
if not os.path.exists(archive):
|
if not os.path.exists(archive):
|
||||||
os.mkdir(archive)
|
os.mkdir(archive)
|
||||||
os.chdir(archive)
|
os.chdir(archive)
|
||||||
all_tools = AllTools()
|
AllTools().show_options()
|
||||||
all_tools.show_options()
|
|
||||||
|
|
||||||
# If not Linux and probably Windows
|
# If not Linux and probably Windows
|
||||||
elif system() == "Windows":
|
elif system() == "Windows":
|
||||||
print(
|
print(
|
||||||
"\033[91m Please Run This Tool On A Debian System For Best Results " "\e[00m")
|
r"\033[91m Please Run This Tool On A Debian System For Best Results\e[00m"
|
||||||
|
)
|
||||||
sleep(2)
|
sleep(2)
|
||||||
webbrowser.open_new_tab("https://tinyurl.com/y522modc")
|
webbrowser.open_new_tab("https://tinyurl.com/y522modc")
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@ from core import HackingToolsCollection
|
|||||||
class Autopsy(HackingTool):
|
class Autopsy(HackingTool):
|
||||||
TITLE = "Autopsy"
|
TITLE = "Autopsy"
|
||||||
DESCRIPTION = "Autopsy is a platform that is used by Cyber Investigators.\n" \
|
DESCRIPTION = "Autopsy is a platform that is used by Cyber Investigators.\n" \
|
||||||
"[!] Works in any Os\n" \
|
"[!] Works in any OS\n" \
|
||||||
"[!] Recover Deleted Files from any OS & MEdia \n" \
|
"[!] Recover Deleted Files from any OS & Media \n" \
|
||||||
"[!] Extract Image Metadata"
|
"[!] Extract Image Metadata"
|
||||||
RUN_COMMANDS = "sudo autopsy"
|
RUN_COMMANDS = ["sudo autopsy"]
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Autopsy, self).__init__(installable = False)
|
super(Autopsy, self).__init__(installable = False)
|
||||||
|
Reference in New Issue
Block a user