Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate redundant linting #11902

Closed
wants to merge 4 commits into from

Conversation

danieleades
Copy link
Contributor

@danieleades danieleades commented Jan 21, 2024

removes deprecated linting.

note that this is missing one lint - E704. I feel like it's overkill keeping an entire flake8 toolchain around for just one lint.
Especially since that lint has been comprehensively disabled inline with noqas

@danieleades
Copy link
Contributor Author

perhaps i should remove all of the noqa: f704s? i'll add another separate commit with those removed and we can discuss

@AA-Turner
Copy link
Member

Would the current Ruff settings raise the flake8 failure from #11791 (comment)? I'll try and find some other recent examples where flake8 failed but Ruff didn't.

A

@danieleades
Copy link
Contributor Author

Would the current Ruff settings raise the flake8 failure from #11791 (comment)? I'll try and find some other recent examples where flake8 failed but Ruff didn't.

A

it should. From memory that was just a formatting issue related to some indents. In principle, the E* lints should pick that up, right?

If only there was some kind of tool, perhaps built into ruff, that would automatically resolve issues with formatting and indentation ;)

@AA-Turner
Copy link
Member

AA-Turner commented Jan 21, 2024

Can we keep the 'external' entry and the inline E704 suppressions? I'd be happier to merge then.

A

@danieleades
Copy link
Contributor Author

Can we keep the 'external' entry and the inline E704 suppressions? I'd be happier to merge then.

A

the external entry doesn't seem to be required any more. Perhaps as a result of the adding and subsequent removing of E704 from ruff?

@AA-Turner
Copy link
Member

Having looked a little closer, see:

There are several rules that flake8 does implement that Ruff simply doesn't, and we aren't at a point where we'll adopt an automatic formatter. So I think I'm happy to drop flake8-simplify, but we still need to keep flake8 proper, it seems.

A

@AA-Turner
Copy link
Member

See #11906

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants