Skip to content

Rule E203 conflicts with formatter #8642

@ofek

Description

@ofek

Running the formatter on

release_lines = history_file_lines[history_file_lines.index('## Unreleased') + 1: -1]

produces

release_lines = history_file_lines[history_file_lines.index('## Unreleased') + 1 : -1]

which then fails the rule

scripts\utils.py:22:85: E203 Whitespace before ':'

Is the fix simply to document that here? https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions