Unverified Commit f0e80c13 authored by Hardik Zinzuvadiya's avatar Hardik Zinzuvadiya Committed by GitHub
Browse files

Merge pull request #258 from cclauss/patch-1

Make mypy a mandatory test
parents 5e2ce168 fb4f05aa
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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):
+3 −3
Original line number Diff line number Diff line
@@ -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")

+3 −3
Original line number Diff line number Diff line
@@ -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)