mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
Run flake8
`devscripts/buildserver.py` is too broken for me to bother with
This commit is contained in:
parent
e95a563ed0
commit
dc02afbb11
3 changed files with 8 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
universal = True
|
universal = True
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = build,venv,.tox,.git,.pytest_cache
|
exclude = build,venv,.tox,.git,.pytest_cache,devscripts/buildserver.py
|
||||||
ignore = E402,E501,E731,E741,W503
|
ignore = E402,E501,E731,E741,W503
|
||||||
max_line_length = 80
|
max_line_length = 80
|
||||||
per_file_ignores =
|
per_file_ignores =
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -18,7 +18,7 @@ from distutils.spawn import spawn
|
||||||
try:
|
try:
|
||||||
# This will create an exe that needs Microsoft Visual C++ 2008
|
# This will create an exe that needs Microsoft Visual C++ 2008
|
||||||
# Redistributable Package
|
# Redistributable Package
|
||||||
import py2exe
|
import py2exe # noqa: F401
|
||||||
except ImportError:
|
except ImportError:
|
||||||
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
|
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
|
||||||
print('Cannot import py2exe', file=sys.stderr)
|
print('Cannot import py2exe', file=sys.stderr)
|
||||||
|
@ -42,11 +42,11 @@ LONG_DESCRIPTION = 'Command-line program to download videos from YouTube.com and
|
||||||
py2exe_console = [{
|
py2exe_console = [{
|
||||||
'script': './youtube_dl/__main__.py',
|
'script': './youtube_dl/__main__.py',
|
||||||
'dest_base': 'youtube-dl',
|
'dest_base': 'youtube-dl',
|
||||||
'version': __version__,
|
'version': __version__, # noqa: F821
|
||||||
'description': DESCRIPTION,
|
'description': DESCRIPTION,
|
||||||
'comments': LONG_DESCRIPTION,
|
'comments': LONG_DESCRIPTION,
|
||||||
'product_name': 'youtube-dl',
|
'product_name': 'youtube-dl',
|
||||||
'product_version': __version__,
|
'product_version': __version__, # noqa: F821
|
||||||
}]
|
}]
|
||||||
|
|
||||||
py2exe_params = {
|
py2exe_params = {
|
||||||
|
@ -103,7 +103,7 @@ class build_lazy_extractors(Command):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='youtube_dl',
|
name='youtube_dl',
|
||||||
version=__version__,
|
version=__version__, # noqa: F821
|
||||||
description=DESCRIPTION,
|
description=DESCRIPTION,
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
url='https://github.com/ytdl-org/youtube-dl',
|
url='https://github.com/ytdl-org/youtube-dl',
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from .lazy_extractors import *
|
from .lazy_extractors import * # noqa: F403
|
||||||
from .lazy_extractors import _ALL_CLASSES
|
from .lazy_extractors import _ALL_CLASSES
|
||||||
_LAZY_LOADER = True
|
_LAZY_LOADER = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
_LAZY_LOADER = False
|
_LAZY_LOADER = False
|
||||||
from .extractors import *
|
from .extractors import * # noqa: F403
|
||||||
|
|
||||||
_ALL_CLASSES = [
|
_ALL_CLASSES = [
|
||||||
klass
|
klass
|
||||||
for name, klass in globals().items()
|
for name, klass in globals().items()
|
||||||
if name.endswith('IE') and name != 'GenericIE'
|
if name.endswith('IE') and name != 'GenericIE'
|
||||||
]
|
]
|
||||||
_ALL_CLASSES.append(GenericIE)
|
_ALL_CLASSES.append(GenericIE) # noqa: F405
|
||||||
|
|
||||||
|
|
||||||
def gen_extractor_classes():
|
def gen_extractor_classes():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue