CI linting configs
Browse files- .travis.yml +0 -1
- Makefile +1 -1
- pytube/__init__.py +2 -2
- setup.py +4 -11
.travis.yml
CHANGED
@@ -3,7 +3,6 @@ cache:
|
|
3 |
- apt
|
4 |
- pip
|
5 |
python:
|
6 |
-
- "3.5"
|
7 |
- "3.6"
|
8 |
- "3.7"
|
9 |
install: "make"
|
|
|
3 |
- apt
|
4 |
- pip
|
5 |
python:
|
|
|
6 |
- "3.6"
|
7 |
- "3.7"
|
8 |
install: "make"
|
Makefile
CHANGED
@@ -10,7 +10,7 @@ ci:
|
|
10 |
pipenv run flake8
|
11 |
pipenv run black pytube --diff
|
12 |
pipenv run mypy pytube
|
13 |
-
pipenv run pytest --cov-report term-missing --cov=pytube
|
14 |
|
15 |
clean: clean-build clean-pyc
|
16 |
|
|
|
10 |
pipenv run flake8
|
11 |
pipenv run black pytube --diff
|
12 |
pipenv run mypy pytube
|
13 |
+
pipenv run pytest --cov-report term-missing --cov=pytube
|
14 |
|
15 |
clean: clean-build clean-pyc
|
16 |
|
pytube/__init__.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
-
# flake8: noqa
|
3 |
# noreorder
|
4 |
"""
|
5 |
Pytube: a very serious Python library for downloading YouTube Videos.
|
@@ -9,6 +9,7 @@ __author__ = "Nick Ficano, Harold Martin"
|
|
9 |
__license__ = "MIT License"
|
10 |
__copyright__ = "Copyright 2019 Nick Ficano"
|
11 |
|
|
|
12 |
from pytube.helpers import create_logger
|
13 |
from pytube.query import CaptionQuery
|
14 |
from pytube.query import StreamQuery
|
@@ -16,7 +17,6 @@ from pytube.streams import Stream
|
|
16 |
from pytube.captions import Caption
|
17 |
from pytube.contrib.playlist import Playlist
|
18 |
from pytube.__main__ import YouTube
|
19 |
-
from pytube.version import __version__
|
20 |
|
21 |
logger = create_logger()
|
22 |
logger.info("%s v%s", __title__, __version__)
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
+
# flake8: noqa: F401
|
3 |
# noreorder
|
4 |
"""
|
5 |
Pytube: a very serious Python library for downloading YouTube Videos.
|
|
|
9 |
__license__ = "MIT License"
|
10 |
__copyright__ = "Copyright 2019 Nick Ficano"
|
11 |
|
12 |
+
from pytube.version import __version__
|
13 |
from pytube.helpers import create_logger
|
14 |
from pytube.query import CaptionQuery
|
15 |
from pytube.query import StreamQuery
|
|
|
17 |
from pytube.captions import Caption
|
18 |
from pytube.contrib.playlist import Playlist
|
19 |
from pytube.__main__ import YouTube
|
|
|
20 |
|
21 |
logger = create_logger()
|
22 |
logger.info("%s v%s", __title__, __version__)
|
setup.py
CHANGED
@@ -15,7 +15,7 @@ with open(os.path.join(here, "pytube", "version.py")) as fp:
|
|
15 |
|
16 |
setup(
|
17 |
name="pytube3",
|
18 |
-
version=__version__,
|
19 |
author="Nick Ficano, Harold Martin",
|
20 |
author_email="[email protected], [email protected]",
|
21 |
packages=["pytube", "pytube.contrib"],
|
@@ -48,14 +48,7 @@ setup(
|
|
48 |
long_description_content_type="text/markdown",
|
49 |
long_description=long_description,
|
50 |
zip_safe=True,
|
51 |
-
python_requires=
|
52 |
-
project_urls={
|
53 |
-
|
54 |
-
},
|
55 |
-
keywords=[
|
56 |
-
"youtube",
|
57 |
-
"download",
|
58 |
-
"video",
|
59 |
-
"stream",
|
60 |
-
],
|
61 |
)
|
|
|
15 |
|
16 |
setup(
|
17 |
name="pytube3",
|
18 |
+
version=__version__, # noqa: F821
|
19 |
author="Nick Ficano, Harold Martin",
|
20 |
author_email="[email protected], [email protected]",
|
21 |
packages=["pytube", "pytube.contrib"],
|
|
|
48 |
long_description_content_type="text/markdown",
|
49 |
long_description=long_description,
|
50 |
zip_safe=True,
|
51 |
+
python_requires=">=3.5",
|
52 |
+
project_urls={"Bug Reports": "https://github.com/hbmartin/pytube3/issues",},
|
53 |
+
keywords=["youtube", "download", "video", "stream",],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
)
|