Skip to content

Commit a90ebc0

Browse files
committed
Run flake8
`devscripts/buildserver.py` is too broken for me to bother with
1 parent 9201e8a commit a90ebc0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
universal = True
33

44
[flake8]
5-
exclude = build,venv,.tox,.git,.pytest_cache
5+
exclude = build,venv,.tox,.git,.pytest_cache,devscripts/buildserver.py
66
ignore = E402,E501,E731,E741,W503
77
max_line_length = 80
88
per_file_ignores =

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
try:
1919
# This will create an exe that needs Microsoft Visual C++ 2008
2020
# Redistributable Package
21-
import py2exe
21+
import py2exe # noqa: F401
2222
except ImportError:
2323
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
2424
print('Cannot import py2exe', file=sys.stderr)
@@ -42,11 +42,11 @@
4242
py2exe_console = [{
4343
'script': './youtube_dl/__main__.py',
4444
'dest_base': 'youtube-dl',
45-
'version': __version__,
45+
'version': __version__, # noqa: F821
4646
'description': DESCRIPTION,
4747
'comments': LONG_DESCRIPTION,
4848
'product_name': 'youtube-dl',
49-
'product_version': __version__,
49+
'product_version': __version__, # noqa: F821
5050
}]
5151

5252
py2exe_params = {
@@ -103,7 +103,7 @@ def run(self):
103103

104104
setup(
105105
name='youtube_dl',
106-
version=__version__,
106+
version=__version__, # noqa: F821
107107
description=DESCRIPTION,
108108
long_description=LONG_DESCRIPTION,
109109
url='https://github.com/ytdl-org/youtube-dl',

youtube_dl/extractor/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
from __future__ import unicode_literals
22

33
try:
4-
from .lazy_extractors import *
4+
from .lazy_extractors import * # noqa: F403
55
from .lazy_extractors import _ALL_CLASSES
66
_LAZY_LOADER = True
77
except ImportError:
88
_LAZY_LOADER = False
9-
from .extractors import *
9+
from .extractors import * # noqa: F403
1010

1111
_ALL_CLASSES = [
1212
klass
1313
for name, klass in globals().items()
1414
if name.endswith('IE') and name != 'GenericIE'
1515
]
16-
_ALL_CLASSES.append(GenericIE)
16+
_ALL_CLASSES.append(GenericIE) # noqa: F405
1717

1818

1919
def gen_extractor_classes():

0 commit comments

Comments
 (0)