Skip to content

flake8 updates and cleanups - #3940

Merged
JelleZijlstra merged 3 commits into
masterfrom
flake8-f401
Apr 24, 2020
Merged

JelleZijlstra merged 3 commits into
masterfrom
flake8-f401

Conversation

@srittau

@srittau srittau commented Apr 23, 2020

Copy link
Copy Markdown
Collaborator
  • Update to flake8 3.7.9.
  • Update to flake8-bugbear 20.1.4.
  • Only ignore errors in stub files.
  • Remove obsolete error counts.
  • Sort error codes alphabetically.
  • Don't ignore the following errors (unneeded):
    • E704 Multiple statements on one line (def)
    • W504 Line break occurred after a binary operator
    • B303 __metaclass__ used

srittau added 2 commits April 23, 2020 12:48
* Update to flake8 3.7.9.
* Update to flake8-bugbear 20.1.4.
* Only ignore errors in stub files.
* Remove obsolete error counts.
* Sort error codes alphabetically.
* Don't ignore the following errors (unneeded):
    * E704 Multiple statements on one line (def)
    * W504 Line break occurred after a binary operator
    * B303 __metaclass__ used
@JelleZijlstra

Copy link
Copy Markdown
Member

What is the reason for ignoring F822? Does it not work correctly in stubs?

@JelleZijlstra

Copy link
Copy Markdown
Member

Oh I see, it doesn't think names are defined if you do x: int.

@JelleZijlstra
JelleZijlstra merged commit 92f52a2 into master Apr 24, 2020
@JelleZijlstra
JelleZijlstra deleted the flake8-f401 branch April 24, 2020 02:38
grievejia pushed a commit to grievejia/typeshed that referenced this pull request Apr 24, 2020
* flake8 updates and cleanups

* Update to flake8 3.7.9.
* Update to flake8-bugbear 20.1.4.
* Only ignore errors in stub files.
* Remove obsolete error counts.
* Sort error codes alphabetically.
* Don't ignore the following errors (unneeded):
    * E704 Multiple statements on one line (def)
    * W504 Line break occurred after a binary operator
    * B303 __metaclass__ used

* Remove obsolete comment

* Ignore F822 undefined name in __all__
vishalkuo pushed a commit to vishalkuo/typeshed that referenced this pull request Jun 26, 2020
* flake8 updates and cleanups

* Update to flake8 3.7.9.
* Update to flake8-bugbear 20.1.4.
* Only ignore errors in stub files.
* Remove obsolete error counts.
* Sort error codes alphabetically.
* Don't ignore the following errors (unneeded):
    * E704 Multiple statements on one line (def)
    * W504 Line break occurred after a binary operator
    * B303 __metaclass__ used

* Remove obsolete comment

* Ignore F822 undefined name in __all__
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.

2 participants