adds flake8 checker plugins
Browse files- .flake8 +1 -1
- Pipfile +7 -0
- pytube/contrib/playlist.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
|
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,
|
3 |
max-line-length = 89
|
4 |
|
5 |
[isort]
|
Pipfile
CHANGED
@@ -17,3 +17,10 @@ sphinx_rtd_theme = "*"
|
|
17 |
mypy = "*"
|
18 |
black = "==19.10b0"
|
19 |
codecov = "*"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
mypy = "*"
|
18 |
black = "==19.10b0"
|
19 |
codecov = "*"
|
20 |
+
flake8-bugbear ="*"
|
21 |
+
flake8-comprehensions ="*"
|
22 |
+
flake8-eradicate = "*"
|
23 |
+
flake8-broken-line = "*"
|
24 |
+
pep8-naming = "*"
|
25 |
+
flake8-string-format = "*"
|
26 |
+
flake8-quotes = "*"
|
pytube/contrib/playlist.py
CHANGED
@@ -138,7 +138,7 @@ class Playlist:
|
|
138 |
def videos(self) -> Iterable[YouTube]:
|
139 |
"""Yields YouTube objects of videos in this playlist
|
140 |
|
141 |
-
:
|
142 |
"""
|
143 |
yield from (YouTube(url) for url in self.video_urls)
|
144 |
|
|
|
138 |
def videos(self) -> Iterable[YouTube]:
|
139 |
"""Yields YouTube objects of videos in this playlist
|
140 |
|
141 |
+
:Yields: YouTube
|
142 |
"""
|
143 |
yield from (YouTube(url) for url in self.video_urls)
|
144 |
|