Skip to content

Extend TD003 to allow "Jira-style" issue IDs on the same line #20809

@simonpercivall

Description

@simonpercivall

Summary

Rule: https://docs.astral.sh/ruff/rules/missing-todo-link/#missing-todo-link-td003

Extension to #8061, where this was changed for "GitHub-style" issue numbers, to allow them on the same line as the TODO comment.

Current behavior

For issue numbers, this is allowed:
# TODO: Move this part to the other place #6877

but this is not:
# TODO: Move this part to the other place RFFU-6877

Outcome

TD003 should accept issue IDs of the form <PREFIX>-<NUMBER> on the same line as the TODO comment, i.e.:

# TODO: Move this part to the other place RFFU-6877

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions