flake8 configs
Browse files- .flake8 +1 -1
- Makefile +2 -1
- pytube/__main__.py +1 -1
.flake8
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[flake8]
|
2 |
-
ignore = E231,E203,W503,Q000,WPS111,WPS305,WPS348,WPS602,D400,DAR201,S101,DAR101,C812,D104,I001,WPS306,WPS214,D401,WPS229,WPS420,WPS230,WPS414,WPS114,WPS226,WPS442,C819,WPS601,T001,RST304,WPS410,WPS428,A003,A002,I003,WPS221,WPS326,WPS201,S405,DAR301,WPS210,WPS202,WPS213,WPS301,
|
3 |
max-line-length = 89
|
4 |
|
5 |
[isort]
|
|
|
1 |
[flake8]
|
2 |
+
ignore = E231,E203,W503,Q000,WPS111,WPS305,WPS348,WPS602,D400,DAR201,S101,DAR101,C812,D104,I001,WPS306,WPS214,D401,WPS229,WPS420,WPS230,WPS414,WPS114,WPS226,WPS442,C819,WPS601,T001,RST304,WPS410,WPS428,A003,A002,I003,WPS221,WPS326,WPS201,S405,DAR301,WPS210,WPS202,WPS213,WPS301,P103
|
3 |
max-line-length = 89
|
4 |
|
5 |
[isort]
|
Makefile
CHANGED
@@ -9,7 +9,8 @@ pipenv:
|
|
9 |
pipenv install --dev
|
10 |
|
11 |
test:
|
12 |
-
pipenv run flake8
|
|
|
13 |
pipenv run black pytube --check
|
14 |
pipenv run black tests --check
|
15 |
pipenv run mypy pytube
|
|
|
9 |
pipenv install --dev
|
10 |
|
11 |
test:
|
12 |
+
pipenv run flake8 pytube/
|
13 |
+
pipenv run flake8 tests/
|
14 |
pipenv run black pytube --check
|
15 |
pipenv run black tests --check
|
16 |
pipenv run mypy pytube
|
pytube/__main__.py
CHANGED
@@ -256,7 +256,7 @@ class YouTube:
|
|
256 |
thumbnail_details = thumbnail_details[-1] # last item has max size
|
257 |
return thumbnail_details["url"]
|
258 |
|
259 |
-
return "https://img.youtube.com/vi/
|
260 |
|
261 |
@property
|
262 |
def title(self) -> str:
|
|
|
256 |
thumbnail_details = thumbnail_details[-1] # last item has max size
|
257 |
return thumbnail_details["url"]
|
258 |
|
259 |
+
return f"https://img.youtube.com/vi/{self.video_id}/maxresdefault.jpg"
|
260 |
|
261 |
@property
|
262 |
def title(self) -> str:
|