Registry / devops / flake8-secure-coding-standard

flake8-secure-coding-standard

JSON →
library1.4.1pypypi✓ verified 81d ago

A Flake8 plugin that enforces additional secure coding practices for Python projects, including checks for hardcoded passwords, insecure function usage, and other security anti-patterns. Current version 1.4.1, released under a maintenance cadence with infrequent updates.

pip install flake8-secure-coding-standard
INSTALL
IMPORT
SIG · FLAKE8-SECURE-CODI
F
flake8-secure-coding-standard
devopspythonv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Plugin
from flake8_secure_coding_standard import Plugin
from flake8_secure_coding_standard import Flake8SecureCodingStandard

Install the plugin and run flake8 on your codebase. The plugin will automatically detect and report violations.

cat > .flake8 <<EOL [flake8] max-line-length = 120 extend-ignore = E501 EOL flake8 --install-hook pip install flake8-secure-coding-standard flake8 your_code.py
Debug
Known issues
gotchaPlugin is inactive if flake8 version is <4.0. Ensure flake8>=4.0 for compatibility.
fix
Update flake8 to >=4.0 or install a newer version of the plugin.
affects: <1.0.0 or flake8<4.0
deprecatedThe check for 'hardcoded_password' is deprecated and will be removed in future release.
fix
Use 'SEC001' pattern or update config to ignore and use alternative checks.
affects: >=1.4.0
breakingVersion 1.3.0 changed the error codes from 'FSC1xx' to 'SEC0xx'. Existing flake8 ignore or exclude configurations may break.
fix
Update all flake8 configuration references from 'FSC' to 'SEC' codes.
affects: >=1.3.0
Upgrade
Version history
1.4.1latest on PyPI · released Jan 7, 2024
Audit
Dependencies
flake8requiredRequired plugin interface
Agent activity
2 hits · last 30 days
node
2
Resources
flake8-secure-coding-standard — pip install flake8-secure-coding-standard · libregistry