Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

[tracker] flake8-bugbear progression #9366

Closed
5 of 9 tasks
ShadowJonathan opened this issue Feb 10, 2021 · 7 comments
Closed
5 of 9 tasks

[tracker] flake8-bugbear progression #9366

ShadowJonathan opened this issue Feb 10, 2021 · 7 comments
Labels
T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Comments

@ShadowJonathan
Copy link
Contributor

ShadowJonathan commented Feb 10, 2021

This is a tracker issue for adding flake8-bugbear in short steps, and to keep track of it's progress.

The original PR was #9320, it has been split in the following PRs;

(Some more information in #9279 about some specifics of these checks)

(#9370 was originally part of this tracker issue, but was denied, some discussion followed)

@ShadowJonathan
Copy link
Contributor Author

Optionally i'd also like to enable B90, (as said in #9279), or a select few of these checks, these can happen after the second PR, but just to note that.

@ShadowJonathan
Copy link
Contributor Author

ShadowJonathan commented Feb 10, 2021

(made #9368 and #9369 to be deliberated for after the first PR)

@erikjohnston erikjohnston added the T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. label Feb 11, 2021
richvdh pushed a commit that referenced this issue Apr 8, 2021
Part of #9366

Adds in fixes for B006 and B008, both relating to mutable parameter lint errors.

Signed-off-by: Jonathan de Jong <[email protected]>
@clokep
Copy link
Member

clokep commented Apr 20, 2021

@ShadowJonathan Looks like a lot of this is done! 🎉 Any update on here that we should add?

@ShadowJonathan
Copy link
Contributor Author

Already added all those updates, next step is "Discuss and merge making flake8 explicitly select checks", i'll make a properly-worded Process issue for that whenever i have time, currently bugbear is "there", but i'd like to also enable some of those "opinionated" checks.

Additionally, I'd wanna update bugbear to the latest version, to fix the newest checks that were added, lemme add that one now...

@clokep
Copy link
Member

clokep commented Apr 20, 2021

Process issue for that whenever i have time, currently bugbear is "there", but i'd like to also enable some of those "opinionated" checks.

I think we can just use this issue.

@ShadowJonathan
Copy link
Contributor Author

I think we can just use this issue.

no, because in #synapse-dev we talked about process issues/changes, which i would really like to be discussed on its own merit.

This is simply a tracker issue too, I dont think it is adequate or on-topic to start talking about something like this on here.

@ShadowJonathan
Copy link
Contributor Author

#12600 came to the conclusion that extend-select was recently added, which addresses the whole deal with select=.

I'll think about adding B90 lints in the future, but for now, this is done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants