Fixing flake8 F403, F405 errors

This commit is contained in:
Lukasz Langa
2016-12-20 02:28:12 -08:00
parent 99a57e5cbe
commit 82b2d8e3bc
24 changed files with 36 additions and 33 deletions

12
.flake8
View File

@@ -10,14 +10,12 @@
# 356 E305 expected 2 blank lines
# Nice-to-haves ignored for now
# 221 E128 continuation line under-indented for visual indent
# 44 E127 continuation line over-indented for visual indent
# 152 E128 continuation line under-indented for visual indent
# 43 E127 continuation line over-indented for visual indent
[flake8]
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704, B303
ignore = F401, F811, F821, E127, E128, E301, E302, E305, E501, E701, E704, E999, B303
# Errors that we need to fix before enabling flake8 by default:
# 921 F821 undefined name
# 26 F403 from * import used
# 7 E999 invalid syntax
# 5 F405 name undefined or from * imports
# 936 F821 undefined name - FIXME: re-enable and add missing imports
# 6 E999 invalid syntax - FIXME: re-enable after flake8 is running from Python 3.6

View File

@@ -3,7 +3,7 @@
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from Crypto.Util.py21compat import *
from Crypto.Util.py3compat import *
from Crypto.Util.py21compat import * # noqa: F403
from Crypto.Util.py3compat import * # noqa: F403
def new(nbits, prefix: Any = ..., suffix: Any = ..., initial_value: int = ..., overflow: int = ..., little_endian: bool = ..., allow_wraparound: bool = ..., disable_shortcut: bool = ...): ...

View File

@@ -3,7 +3,7 @@
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, AnyStr, List
from genericpath import *
from genericpath import * # noqa: F403
curdir = ... # type: Any
pardir = ... # type: Any

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from sqlite3.dbapi2 import *
from sqlite3.dbapi2 import * # noqa: F403

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *
from xml.etree.ElementTree import * # noqa: F403

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *
from xml.etree.ElementTree import * # noqa: F403

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *
from xml.etree.ElementTree import * # noqa: F403

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *
from xml.etree.ElementTree import * # noqa: F403

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *
from xml.etree.ElementTree import * # noqa: F403

View File

@@ -1,3 +1,3 @@
from ._base import *
from .thread import *
from .process import *
from ._base import * # noqa: F403
from .thread import * # noqa: F403
from .process import * # noqa: F403

View File

@@ -2,7 +2,7 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from _curses import *
from _curses import * # noqa: F403
# Stubgen imports a python version of has_key only if it's not present
# in _curses (which it is in this stub)
# from .has_key import has_key as has_key

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from sqlite3.dbapi2 import *
from sqlite3.dbapi2 import * # noqa: F403

View File

@@ -3,7 +3,7 @@
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from tkinter.constants import *
from tkinter.constants import * # noqa: F403
TclError = ... # type: Any
wantobjects = ... # type: Any

View File

@@ -4,7 +4,7 @@
from typing import Any, Union, TextIO
from builtins import open as _builtin_open
from token import *
from token import * # noqa: F403
COMMENT = ... # type: Any
NL = ... # type: Any

View File

@@ -2,4 +2,4 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from xml.etree.ElementTree import *
from xml.etree.ElementTree import * # noqa: F403

View File

@@ -5,7 +5,7 @@
from typing import Any
import fb303.FacebookService
from .ttypes import *
from .ttypes import * # noqa: F403
from thrift.Thrift import TProcessor
class Iface(fb303.FacebookService.Iface):

View File

@@ -3,4 +3,4 @@
#
# Stubs for six.moves.cPickle (Python 2.7)
from cPickle import *
from cPickle import * # noqa: F403

View File

@@ -1 +1 @@
from sqlalchemy.dialects.mysql.base import *
from sqlalchemy.dialects.mysql.base import * # noqa: F403

View File

@@ -4,7 +4,8 @@
from typing import Any
from .TProtocol import *
from .TProtocol import TProtocolBase
from .TProtocol import * # noqa: F403
class TBinaryProtocol(TProtocolBase):
VERSION_MASK = ... # type: Any

View File

@@ -4,7 +4,8 @@
from typing import Any
from thrift.Thrift import *
from thrift.Thrift import TException
from thrift.Thrift import * # noqa: F403
class TProtocolException(TException):
UNKNOWN = ... # type: Any

View File

@@ -4,7 +4,8 @@
from typing import Any
from .TTransport import *
from .TTransport import TTransportBase, TServerTransportBase
from .TTransport import * # noqa: F403
class TSocketBase(TTransportBase):
handle = ... # type: Any

View File

@@ -3,7 +3,9 @@
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
from Crypto.PublicKey.pubkey import *
from Crypto.PublicKey.pubkey import pubkey
from Crypto.PublicKey.pubkey import * # noqa: F403
class error(Exception): ...

View File

@@ -2,7 +2,7 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from Crypto.Util.number import *
from Crypto.Util.number import * # noqa: F403
__revision__ = ... # type: str

View File

@@ -3,4 +3,4 @@
#
# Stubs for six.moves.cPickle (Python 3.2)
from pickle import *
from pickle import * # noqa: F403