diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index eee4a73..d082fa3 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -1,5 +1,9 @@ name: lint_python -on: [pull_request, push] +on: + pull_request: + branches: [master] + push: + branches: [master] jobs: lint_python: runs-on: ubuntu-latest @@ -7,20 +11,21 @@ jobs: - uses: actions/checkout@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 - - run: bandit --recursive --skip B404,B603,B605,B607 . + python-version: 3.x + - run: pip install --upgrade pip ruff setuptools wheel + - name: "Ruff: Show stopper (must-fix) issues" + run: ruff . --select=E9,F63,F7,F82,PLE,YTT --show-source . + - name: "Ruff: All issues" + run: ruff --exit-zero --select=ALL --statistics --target-version=py37 . + - name: "Ruff: All fixable (ruff --fix) issues" + run: ruff --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102 + --statistics --target-version=py37 . | grep "\[\*\]" + - run: pip install black codespell mypy pytest safety - run: black --check . || true - - run: codespell --ignore-words-list="WAN" || true # --skip="*.css,*.js,*.lock" - - 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 requirement.txt || pip install -r requirements.txt || pip install --editable . || pip install . || true + - run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock" + - run: 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: pytest . || true - run: pytest --doctest-modules . || true - - run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true - run: safety check diff --git a/Dockerfile b/Dockerfile index b7abb99..2945f20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /root/hackingtool COPY . . RUN true && \ -pip3 install -r requirement.txt; +pip3 install -r requirements.txt; RUN true && \ pip3 install lolcat boxes flask requests; diff --git a/README.md b/README.md index 28159c8..016c4ed 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ #### Install Kali Linux in WIndows10 Without VirtualBox [YOUTUBE](https://youtu.be/BsFhpIDcd9I) or use Docker -## Update Available V1.1.0 🚀 +## Update Available V1.2.0 🚀 +- [✔] Installation Bug Fixed - [x] Added New Tools - [x] Reverse Engineering - [x] RAT Tools @@ -217,9 +218,7 @@ cd hackingtool - sudo pip3 install -r requirement.txt - - bash install.sh + sudo bash install.sh sudo hackingtool @@ -255,8 +254,6 @@ ##### Your Favourite Tool is not in hackingtool or Suggestions Please [CLICK HERE](https://forms.gle/b235JoCKyUq5iM3t8) ![Z4nzu's github stats](https://github-readme-stats.vercel.app/api?username=Z4nzu&show_icons=true&title_color=fff&icon_color=79ff97&text_color=9f9f9f&bg_color=151515) -Buy Me A Coffee - #### Don't Forgot to share with Your Friends ### The new Update get will soon stay updated #### Thank you..!! diff --git a/README_template.md b/README_template.md index 40c31c0..ea2f0e6 100644 --- a/README_template.md +++ b/README_template.md @@ -39,7 +39,7 @@ cd hackingtool - sudo pip3 install -r requirement.txt + sudo pip3 install -r requirements.txt bash install.sh diff --git a/install.sh b/install.sh index 0b954dc..3c63fc1 100644 --- a/install.sh +++ b/install.sh @@ -104,10 +104,10 @@ if [[ $choice =~ ^[1-2]+$ ]]; then echo ""; echo -e "${YELLOW}[*] Installing requirements...${NC}" if [[ $choice == 1 ]]; then - pip3 install -r $install_dir/requirement.txt + pip3 install -r $install_dir/requirements.txt sudo apt install figlet -y elif [[ $choice == 2 ]]; then - pip3 install -r $install_dir/requirement.txt + pip3 install -r $install_dir/requirements.txt yay -S boxes --noconfirm sudo pacman -S figlet -y fi diff --git a/requirement.txt b/requirements.txt similarity index 67% rename from requirement.txt rename to requirements.txt index 2341f97..3ee5ae7 100644 --- a/requirement.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -lolcat boxes flask -requests +lolcat +requests \ No newline at end of file