Skip to content

DM-55493: Refresh vendored ruff-shared.toml for ruff 0.16 CPY001 - #300

Merged
jonathansick merged 1 commit into
mainfrom
tickets/DM-55493-ruff-cpy001
Jul 27, 2026
Merged

DM-55493: Refresh vendored ruff-shared.toml for ruff 0.16 CPY001#300
jonathansick merged 1 commit into
mainfrom
tickets/DM-55493-ruff-cpy001

Conversation

@jonathansick

Copy link
Copy Markdown
Member

Summary

  • Ruff 0.16.0 (2026-07-23) stabilized CPY001 (missing-copyright-notice) out of preview. Because ruff-shared.toml uses select = ["ALL"], the rule armed itself fleet-wide.
  • Refresh the vendored ruff-shared.toml from the current lsst/templates project_templates/fastapi_safir_app/{{cookiecutter.name}}/ruff-shared.toml, which now ignores CPY001 ("No, every single file doesn't need its own copyright notice").
  • The diff is exactly that one added ignore line; the vendored copy otherwise remains a clean, unmodified template copy.

Notes

  • With the repo's pinned pre-commit ruff rev (0.15.22) ruff check . passes cleanly.
  • Latest ruff (0.16.0) still flags PLR0917 (too-many-positional-arguments) in src/ook/services/ingest/sdmschemas.py once the pin is bumped in a future PR; that is expected and tracked separately, out of scope for this config-only change.

Jira: DM-55493

Sync the vendored ruff-shared.toml with the current lsst/templates
fastapi_safir_app copy, which now ignores CPY001 (missing-copyright-notice)
now that ruff 0.16.0 stabilized it out of preview.

DM-55493
@jonathansick
jonathansick force-pushed the tickets/DM-55493-ruff-cpy001 branch from b202823 to 66a306e Compare July 27, 2026 17:50
@jonathansick
jonathansick merged commit 6e2bd2a into main Jul 27, 2026
7 checks passed
@jonathansick
jonathansick deleted the tickets/DM-55493-ruff-cpy001 branch July 27, 2026 18:05
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