Dlint is a security-focused linter for Python that enforces best coding practices and helps prevent common vulnerabilities. The latest version is 0.16.0, compatible with Python 3.8.1 to 3.11. It is actively maintained with ongoing releases.
pip install dlintVerified import paths — ran on the pinned version, not inferred.
Run Dlint on a string of Python code and print out any security issues found.
Run 'flake8 --select=DUO' instead of 'dlint'.
Specify 'allowed_codes' instead of 'plugins'.
Restart your editor or re-run flake8 after pip install dlint.
pip install dlint && flake8 --select=DUO your_code.py