pelican/RELEASE.md
rivassec 33ee4fd937 Enable flake8-bandit (Ruff S) rule set
Addresses the `# TODO: "S"` marker in pyproject.toml. Adds a per-file
ignore for `pelican/tests/*` covering S-rules that are universally
appropriate to suppress in test code (S101 assert, S105/S106 hardcoded
test passwords, S108 /tmp paths, S311 non-cryptographic randomness,
S603/S607 subprocess fixtures, S104 loopback bindings).

Each remaining library finding gets a targeted `# noqa` with a
justification comment explaining why the call is acceptable in
context. Two `S101` suppressions in `pelican_import.py` and one
`S504` in `server.py` flag latent issues that warrant follow-up but
are intentionally deferred so this commit stays purely lint-enabling.

No behavior changes.
2026-06-10 20:07:36 -07:00

858 B

Release type: patch

Enable the S (flake8-bandit) Ruff rule set, addressing the # TODO: "S" note in pyproject.toml. Adds a pelican/tests/* ignore for rules that are universally appropriate to suppress in tests (asserts, hardcoded test values, subprocess fixtures, loopback bindings) and adds inline # noqa suppressions, each with a justification comment, on the existing library findings.

No behavior changes; this commit only enables the lint and documents why each existing finding is acceptable. Two S101 and one S504 suppressions in pelican/tools/pelican_import.py and pelican/server.py flag latent issues that warrant follow-up (asserts used as control flow or invariant checks are stripped under python -O; ssl.wrap_socket is deprecated since Python 3.12) and are intentionally deferred to keep this commit purely lint-enabling.