cleaned up imports/updated precommit
Browse files- .pre-commit-config.yaml +2 -2
- pytube/__init__.py +3 -0
- pytube/__main__.py +2 -2
- setup.cfg +1 -2
.pre-commit-config.yaml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2 |
-
sha: v0.
|
3 |
hooks:
|
4 |
- id: autopep8-wrapper
|
5 |
- id: check-ast
|
@@ -12,7 +12,7 @@
|
|
12 |
- id: requirements-txt-fixer
|
13 |
- id: trailing-whitespace
|
14 |
- repo: https://github.com/asottile/reorder_python_imports
|
15 |
-
sha: v0.3.
|
16 |
hooks:
|
17 |
- id: reorder-python-imports
|
18 |
language_version: python3.6
|
|
|
1 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2 |
+
sha: v0.9.5
|
3 |
hooks:
|
4 |
- id: autopep8-wrapper
|
5 |
- id: check-ast
|
|
|
12 |
- id: requirements-txt-fixer
|
13 |
- id: trailing-whitespace
|
14 |
- repo: https://github.com/asottile/reorder_python_imports
|
15 |
+
sha: v0.3.5
|
16 |
hooks:
|
17 |
- id: reorder-python-imports
|
18 |
language_version: python3.6
|
pytube/__init__.py
CHANGED
@@ -1,2 +1,5 @@
|
|
1 |
# flake8: noqa
|
|
|
|
|
|
|
2 |
from pytube.__main__ import YouTube
|
|
|
1 |
# flake8: noqa
|
2 |
+
# noreorder
|
3 |
+
from pytube.query import StreamQuery
|
4 |
+
from pytube.streams import Stream
|
5 |
from pytube.__main__ import YouTube
|
pytube/__main__.py
CHANGED
@@ -11,8 +11,8 @@ import json
|
|
11 |
from pytube import download
|
12 |
from pytube import extract
|
13 |
from pytube import mixins
|
14 |
-
from pytube
|
15 |
-
from pytube
|
16 |
|
17 |
|
18 |
class YouTube:
|
|
|
11 |
from pytube import download
|
12 |
from pytube import extract
|
13 |
from pytube import mixins
|
14 |
+
from pytube import Stream
|
15 |
+
from pytube import StreamQuery
|
16 |
|
17 |
|
18 |
class YouTube:
|
setup.cfg
CHANGED
@@ -3,7 +3,7 @@ commit = True
|
|
3 |
tag = True
|
4 |
current_version = 6.4.3
|
5 |
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
|
6 |
-
serialize =
|
7 |
{major}.{minor}.{patch}
|
8 |
|
9 |
[metadata]
|
@@ -21,4 +21,3 @@ pdb-failures = 0
|
|
21 |
[bumpversion:file:setup.py]
|
22 |
|
23 |
[bumpversion:file:pytube/__init__.py]
|
24 |
-
|
|
|
3 |
tag = True
|
4 |
current_version = 6.4.3
|
5 |
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
|
6 |
+
serialize =
|
7 |
{major}.{minor}.{patch}
|
8 |
|
9 |
[metadata]
|
|
|
21 |
[bumpversion:file:setup.py]
|
22 |
|
23 |
[bumpversion:file:pytube/__init__.py]
|
|