diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 6557c0e..bdf7288 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -5,7 +5,9 @@ jobs: runs-on: ubuntu-latest steps: - 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 bandit black codespell flake8 flake8-bugbear flake8-return 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 --max-complexity=11 --max-line-length=265 --show-source --statistics . - 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: mypy --ignore-missing-imports --install-types --non-interactive . || true + - run: mypy --ignore-missing-imports --install-types --non-interactive . - run: pytest . || true - run: pytest --doctest-modules . || true - run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true diff --git a/generate_readme.py b/generate_readme.py index 5990fd2..1b90a03 100644 --- a/generate_readme.py +++ b/generate_readme.py @@ -3,7 +3,7 @@ import re from core import HackingTool from core import HackingToolsCollection -from main import all_tools +from hackingtool import all_tools def sanitize_anchor(s): diff --git a/hackingtool.py b/hackingtool.py index 7514d80..00f6ef7 100644 --- a/hackingtool.py +++ b/hackingtool.py @@ -105,13 +105,13 @@ if __name__ == "__main__": if not os.path.exists(archive): os.mkdir(archive) os.chdir(archive) - all_tools = AllTools() - all_tools.show_options() + AllTools().show_options() # If not Linux and probably Windows elif system() == "Windows": 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) webbrowser.open_new_tab("https://tinyurl.com/y522modc") diff --git a/tools/forensic_tools.py b/tools/forensic_tools.py index 57e9d92..592988e 100644 --- a/tools/forensic_tools.py +++ b/tools/forensic_tools.py @@ -8,10 +8,10 @@ from core import HackingToolsCollection class Autopsy(HackingTool): TITLE = "Autopsy" DESCRIPTION = "Autopsy is a platform that is used by Cyber Investigators.\n" \ - "[!] Works in any Os\n" \ - "[!] Recover Deleted Files from any OS & MEdia \n" \ + "[!] Works in any OS\n" \ + "[!] Recover Deleted Files from any OS & Media \n" \ "[!] Extract Image Metadata" - RUN_COMMANDS = "sudo autopsy" + RUN_COMMANDS = ["sudo autopsy"] def __init__(self): super(Autopsy, self).__init__(installable = False)