-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Type
enhancement
Severity
low
Area
.github/workflows/ci.yml
Description
The current CI pipeline runs pytest but does not include:
- Linting: No
flake8orruffcheck — style and import issues can land on main - Type checking: No
mypyorpyright— theOptionalimport bug inruntime.py(now fixed) would have been caught - Security scanning: No
banditorsafetycheck — known-vulnerable dependencies and unsafe patterns go undetected - Dependency auditing:
netifacesis unmaintained (last release 2021), and there is no mechanism to flag stale or vulnerable dependencies
Proposed Fix
Add parallel CI jobs:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install ruff
- run: ruff check .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install mypy
- run: mypy nmapui/ --ignore-missing-imports
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install bandit safety
- run: bandit -r nmapui/ -ll
- run: safety check -r requirements.txtRelated Issues
#162 (CI coverage for packaged app and browser tests)
#187 (Python version matrix — closed)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request