Skip to content

Extend ignore list in flake8 config#279

Open
snprajwal wants to merge 1 commit into
swiftlang:mainfrom
snprajwal:fix-flake8-ignore
Open

Extend ignore list in flake8 config#279
snprajwal wants to merge 1 commit into
swiftlang:mainfrom
snprajwal:fix-flake8-ignore

Conversation

@snprajwal
Copy link
Copy Markdown

flake8 disables a number of checks by default, e.g. W503 1 and W504 2, which are conflicting checks and are both not violations of the PEP8 standard. In the flake8 config, the ignore key overrides the default ignore list, leading to these issues being raised in CI. The extend-ignore key extends the default ignore list instead, allowing these issues to correctly remain suppressed.

flake8 disables a number of checks by default, e.g. W503 [1] and W504
[2], which are conflicting checks and are both not violations of the
PEP8 standard. In the flake8 config, the `ignore` key overrides the
default ignore list, leading to these issues being raised in CI. The
`extend-ignore` key extends the default ignore list instead, allowing
these issues to correctly remain suppressed.

[1]: https://www.flake8rules.com/rules/W503.html
[2]: https://www.flake8rules.com/rules/W504.html
@snprajwal snprajwal requested a review from a team as a code owner June 6, 2026 01: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