Skip to content

fix(lint): broaden generated tests/** ruff S-ignore for common test patterns - #245

Merged
gtauzin merged 1 commit into
mainfrom
broaden-test-s-ignores
Jul 26, 2026
Merged

fix(lint): broaden generated tests/** ruff S-ignore for common test patterns#245
gtauzin merged 1 commit into
mainfrom
broaden-test-s-ignores

Conversation

@gtauzin

@gtauzin gtauzin commented Jul 26, 2026

Copy link
Copy Markdown
Member

What

Broadens the generated tests/** ruff S-ignore with S104, S105, S106, S107, S108, S112.

Why (evidence from the v0.34.0 fan-out)

Enabling ruff S fleet-wide (v0.33.0) surfaced S findings in real test code that the template's tests/** ignore did not cover, forcing per-repo triage during the fan-out:

  • sklearn-wrap: S105/S106/S107 — password-named test fixtures
  • kedro-dagster: S104/S108/S112 — bind-all-interfaces, hardcoded temp paths, try/except/continue
  • kedro-azureml-pipeline: S112 — best-effort plugin-load loop in conftest

All are legitimate in test code (the same "tests may do insecure-looking things" philosophy behind the existing S101/S110/S301/S311/S603/S607 ignores). Adding them upstream means future repos and fan-outs skip this triage. src/ still enforces every S rule.

Scope

One line in template/pyproject.toml.jinja. Config-only; fast suite green (383). This is the v0.35.0 follow-up to the security hardening work.

…atterns

The v0.34.0 fan-out surfaced ruff S findings in real test code that the template's
tests/** ignore did not cover, forcing per-repo triage: sklearn-wrap hit S105/S106/S107
(password-named fixtures), and kedro-dagster + kedro-azureml-pipeline hit S104/S108/S112
(bind-all-interfaces, hardcoded temp paths, try/except/continue). These are all
legitimate in test code. Add S104/S105/S106/S107/S108/S112 to the template's tests/**
per-file-ignore so future repos and fan-outs skip that triage. src/ still enforces every
S rule.
@gtauzin
gtauzin merged commit e748f5c into main Jul 26, 2026
14 of 15 checks passed
@gtauzin
gtauzin deleted the broaden-test-s-ignores branch July 26, 2026 08:29
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