Skip to content

refactor: fix critical NameErrors, clean up unused imports/variables,…#530

Open
dkoryto wants to merge 2 commits into
kimocoder:masterfrom
dkoryto:master
Open

refactor: fix critical NameErrors, clean up unused imports/variables,…#530
dkoryto wants to merge 2 commits into
kimocoder:masterfrom
dkoryto:master

Conversation

@dkoryto

@dkoryto dkoryto commented Jun 10, 2026

Copy link
Copy Markdown

… and modernize config

  • Fix missing 'import subprocess' in wifite/attack/wpa.py (NameError)
  • Fix missing 'log_error' import in wifite/util/interface_assignment.py (NameError)
  • Fix missing 'InterfaceManager' import in wifite/util/system_check.py (NameError)
  • Fix color variables in f-strings in wifite/util/wpa3_tools.py (NameError)
  • Restore 'import subprocess' in wifite/util/cleanup.py (needed by tests)
  • Remove dead code/duplicate entry-point from setup.py
  • Remove deprecated flake8-ignore from setup.cfg
  • Add psutil to dependencies (pyproject.toml + requirements.txt)
  • Remove sys.path.insert hacks from 16 test files
  • Mass cleanup of unused imports (F401), unused variables (F841), and empty f-strings (F541) across wifite/ and tests/

Test results: 617 passed, 7 failed (pre-existing/environment issues)

dkoryto added 2 commits June 11, 2026 00:01
… and modernize config

- Fix missing 'import subprocess' in wifite/attack/wpa.py (NameError)
- Fix missing 'log_error' import in wifite/util/interface_assignment.py (NameError)
- Fix missing 'InterfaceManager' import in wifite/util/system_check.py (NameError)
- Fix color variables in f-strings in wifite/util/wpa3_tools.py (NameError)
- Restore 'import subprocess' in wifite/util/cleanup.py (needed by tests)
- Remove dead code/duplicate entry-point from setup.py
- Remove deprecated flake8-ignore from setup.cfg
- Add psutil to dependencies (pyproject.toml + requirements.txt)
- Remove sys.path.insert hacks from 16 test files
- Mass cleanup of unused imports (F401), unused variables (F841),
  and empty f-strings (F541) across wifite/ and tests/

Test results: 617 passed, 7 failed (pre-existing/environment issues)
- kimocoder#520: Verify OpenCL devices are actually available before using
  wpapsk-opencl format in john.py (not just compiled in)
- kimocoder#477: Uncomment --rds=3 and --enable_status=15 flags in hcxdumptool.py
  passive mode to prevent aggressive default behavior in hcxdumptool v7
- kimocoder#522: In infinite mode, return empty target list instead of raising
  Exception when no targets are found, allowing scan cycle to continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant