additional linting plugins
Browse files- .flake8 +1 -1
- Pipfile +22 -12
- Pipfile.lock +209 -18
- pytube/cli.py +1 -0
- pytube/extract.py +0 -1
- tests/test_captions.py +1 -0
- tests/test_extract.py +0 -1
- tests/test_query.py +1 -1
- tests/test_request.py +0 -1
- tests/test_streams.py +0 -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,P103,WPS407,WPS432,WPS211
|
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,WPS407,WPS432,WPS211,S314,S310,S001,IF100,PT001
|
3 |
max-line-length = 89
|
4 |
|
5 |
[isort]
|
Pipfile
CHANGED
@@ -7,21 +7,31 @@ name = "pypi"
|
|
7 |
typing_extensions = "*"
|
8 |
|
9 |
[dev-packages]
|
10 |
-
"flake8" = "*"
|
11 |
-
pytest = "*"
|
12 |
-
pytest-mock = "*"
|
13 |
-
pre-commit = "*"
|
14 |
-
pytest-cov = "*"
|
15 |
-
coveralls = "*"
|
16 |
-
sphinx_rtd_theme = "*"
|
17 |
-
mypy = "*"
|
18 |
black = "==19.10b0"
|
19 |
codecov = "*"
|
|
|
|
|
|
|
|
|
20 |
flake8-bugbear ="*"
|
|
|
21 |
flake8-comprehensions ="*"
|
22 |
flake8-eradicate = "*"
|
23 |
-
flake8-
|
24 |
-
|
25 |
-
flake8-
|
|
|
|
|
|
|
|
|
26 |
flake8-quotes = "*"
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
typing_extensions = "*"
|
8 |
|
9 |
[dev-packages]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
black = "==19.10b0"
|
11 |
codecov = "*"
|
12 |
+
coveralls = "*"
|
13 |
+
flake8 = "*"
|
14 |
+
flake8-breakpoint = "*"
|
15 |
+
flake8-broken-line = "*"
|
16 |
flake8-bugbear ="*"
|
17 |
+
flake8-builtins = "*"
|
18 |
flake8-comprehensions ="*"
|
19 |
flake8-eradicate = "*"
|
20 |
+
flake8-executable = "*"
|
21 |
+
flake8-if-expr = "*"
|
22 |
+
flake8-isort = "*"
|
23 |
+
flake8-logging-format = "*"
|
24 |
+
flake8-print = "*"
|
25 |
+
flake8-pytest = "*"
|
26 |
+
flake8-pytest-style = "*"
|
27 |
flake8-quotes = "*"
|
28 |
+
flake8-return = "*"
|
29 |
+
flake8-string-format = "*"
|
30 |
+
mypy = "*"
|
31 |
+
pep8-naming = "*"
|
32 |
+
pre-commit = "*"
|
33 |
+
pytest = "*"
|
34 |
+
pytest-cov = "*"
|
35 |
+
pytest-mock = "*"
|
36 |
+
pytest-profiling = "*"
|
37 |
+
sphinx_rtd_theme = "*"
|
Pipfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
-
"sha256": "
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
"requires": {},
|
@@ -77,10 +77,10 @@
|
|
77 |
},
|
78 |
"cfgv": {
|
79 |
"hashes": [
|
80 |
-
"sha256:
|
81 |
-
"sha256:
|
82 |
],
|
83 |
-
"version": "==
|
84 |
},
|
85 |
"chardet": {
|
86 |
"hashes": [
|
@@ -168,6 +168,19 @@
|
|
168 |
],
|
169 |
"version": "==0.3"
|
170 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
"flake8": {
|
172 |
"hashes": [
|
173 |
"sha256:45681a117ecc81e870cbf1262835ae4af5e7a8b08e40b944a8a6e6b895914cfb",
|
@@ -176,6 +189,151 @@
|
|
176 |
"index": "pypi",
|
177 |
"version": "==3.7.9"
|
178 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
"identify": {
|
180 |
"hashes": [
|
181 |
"sha256:1222b648251bdcb8deb240b294f450fbf704c7984e08baa92507e4ea10b436d5",
|
@@ -205,12 +363,22 @@
|
|
205 |
"markers": "python_version < '3.8'",
|
206 |
"version": "==1.5.0"
|
207 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
"jinja2": {
|
209 |
"hashes": [
|
210 |
-
"sha256:
|
211 |
-
"sha256:
|
212 |
],
|
213 |
-
"version": "==2.11.
|
214 |
},
|
215 |
"markupsafe": {
|
216 |
"hashes": [
|
@@ -293,9 +461,9 @@
|
|
293 |
},
|
294 |
"nodeenv": {
|
295 |
"hashes": [
|
296 |
-
"sha256:
|
297 |
],
|
298 |
-
"version": "==1.3.
|
299 |
},
|
300 |
"packaging": {
|
301 |
"hashes": [
|
@@ -311,6 +479,14 @@
|
|
311 |
],
|
312 |
"version": "==0.7.0"
|
313 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
"pluggy": {
|
315 |
"hashes": [
|
316 |
"sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0",
|
@@ -385,6 +561,14 @@
|
|
385 |
"index": "pypi",
|
386 |
"version": "==2.0.0"
|
387 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
"pytz": {
|
389 |
"hashes": [
|
390 |
"sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d",
|
@@ -457,10 +641,10 @@
|
|
457 |
},
|
458 |
"sphinx": {
|
459 |
"hashes": [
|
460 |
-
"sha256:
|
461 |
-
"sha256:
|
462 |
],
|
463 |
-
"version": "==2.
|
464 |
},
|
465 |
"sphinx-rtd-theme": {
|
466 |
"hashes": [
|
@@ -512,6 +696,13 @@
|
|
512 |
],
|
513 |
"version": "==1.1.3"
|
514 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
"toml": {
|
516 |
"hashes": [
|
517 |
"sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c",
|
@@ -563,10 +754,10 @@
|
|
563 |
},
|
564 |
"virtualenv": {
|
565 |
"hashes": [
|
566 |
-
"sha256:
|
567 |
-
"sha256:
|
568 |
],
|
569 |
-
"version": "==
|
570 |
},
|
571 |
"wcwidth": {
|
572 |
"hashes": [
|
@@ -577,10 +768,10 @@
|
|
577 |
},
|
578 |
"zipp": {
|
579 |
"hashes": [
|
580 |
-
"sha256:
|
581 |
-
"sha256:
|
582 |
],
|
583 |
-
"version": "==2.
|
584 |
}
|
585 |
}
|
586 |
}
|
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
+
"sha256": "75db0d3ce74eb73cbebc67bedd6754c46ef00ae20287eec86d1940096b8f1f10"
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
"requires": {},
|
|
|
77 |
},
|
78 |
"cfgv": {
|
79 |
"hashes": [
|
80 |
+
"sha256:04b093b14ddf9fd4d17c53ebfd55582d27b76ed30050193c14e560770c5360eb",
|
81 |
+
"sha256:f22b426ed59cd2ab2b54ff96608d846c33dfb8766a67f0b4a6ce130ce244414f"
|
82 |
],
|
83 |
+
"version": "==3.0.0"
|
84 |
},
|
85 |
"chardet": {
|
86 |
"hashes": [
|
|
|
168 |
],
|
169 |
"version": "==0.3"
|
170 |
},
|
171 |
+
"eradicate": {
|
172 |
+
"hashes": [
|
173 |
+
"sha256:4ffda82aae6fd49dfffa777a857cb758d77502a1f2e0f54c9ac5155a39d2d01a"
|
174 |
+
],
|
175 |
+
"version": "==1.0"
|
176 |
+
},
|
177 |
+
"filelock": {
|
178 |
+
"hashes": [
|
179 |
+
"sha256:18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59",
|
180 |
+
"sha256:929b7d63ec5b7d6b71b0fa5ac14e030b3f70b75747cef1b10da9b879fef15836"
|
181 |
+
],
|
182 |
+
"version": "==3.0.12"
|
183 |
+
},
|
184 |
"flake8": {
|
185 |
"hashes": [
|
186 |
"sha256:45681a117ecc81e870cbf1262835ae4af5e7a8b08e40b944a8a6e6b895914cfb",
|
|
|
189 |
"index": "pypi",
|
190 |
"version": "==3.7.9"
|
191 |
},
|
192 |
+
"flake8-breakpoint": {
|
193 |
+
"hashes": [
|
194 |
+
"sha256:27e0cb132647f9ef348b4a3c3126e7350bedbb22e8e221cd11712a223855ea0b",
|
195 |
+
"sha256:5bc70d478f0437a3655d094e1d2fca81ddacabaa84d99db45ad3630bf2004064"
|
196 |
+
],
|
197 |
+
"index": "pypi",
|
198 |
+
"version": "==1.1.0"
|
199 |
+
},
|
200 |
+
"flake8-broken-line": {
|
201 |
+
"hashes": [
|
202 |
+
"sha256:30378a3749911e453d0a9e03204156cbbd35bcc03fb89f12e6a5206e5baf3537",
|
203 |
+
"sha256:7721725dce3aeee1df371a252822f1fcecfaf2766dcf5bac54ee1b3f779ee9d1"
|
204 |
+
],
|
205 |
+
"index": "pypi",
|
206 |
+
"version": "==0.1.1"
|
207 |
+
},
|
208 |
+
"flake8-bugbear": {
|
209 |
+
"hashes": [
|
210 |
+
"sha256:a3ddc03ec28ba2296fc6f89444d1c946a6b76460f859795b35b77d4920a51b63",
|
211 |
+
"sha256:bd02e4b009fb153fe6072c31c52aeab5b133d508095befb2ffcf3b41c4823162"
|
212 |
+
],
|
213 |
+
"index": "pypi",
|
214 |
+
"version": "==20.1.4"
|
215 |
+
},
|
216 |
+
"flake8-builtins": {
|
217 |
+
"hashes": [
|
218 |
+
"sha256:29bc0f7e68af481d088f5c96f8aeb02520abdfc900500484e3af969f42a38a5f",
|
219 |
+
"sha256:c44415fb19162ef3737056e700d5b99d48c3612a533943b4e16419a5d3de3a64"
|
220 |
+
],
|
221 |
+
"index": "pypi",
|
222 |
+
"version": "==1.4.2"
|
223 |
+
},
|
224 |
+
"flake8-comprehensions": {
|
225 |
+
"hashes": [
|
226 |
+
"sha256:d08323aa801aef33477cd33f2f5ce3acb1aafd26803ab0d171d85d514c1273a2",
|
227 |
+
"sha256:e7db586bb6eb95afdfd87ed244c90e57ae1352db8ef0ad3012fca0200421e5df"
|
228 |
+
],
|
229 |
+
"index": "pypi",
|
230 |
+
"version": "==3.2.2"
|
231 |
+
},
|
232 |
+
"flake8-eradicate": {
|
233 |
+
"hashes": [
|
234 |
+
"sha256:b0bcdbb70a489fb799f9ee11fefc57bd0d3251e1ea9bdc5bf454443cccfd620c",
|
235 |
+
"sha256:b693e9dfe6da42dbc7fb75af8486495b9414d1ab0372d15efcf85a2ac85fd368"
|
236 |
+
],
|
237 |
+
"index": "pypi",
|
238 |
+
"version": "==0.2.4"
|
239 |
+
},
|
240 |
+
"flake8-executable": {
|
241 |
+
"hashes": [
|
242 |
+
"sha256:968618c475a23a538ced9b957a741b818d37610838f99f6abcea249e4de7c9ec",
|
243 |
+
"sha256:a636ff78b14b63b1245d1c4d509db2f6ea0f2e27a86ee7eb848f3827bef7e16d"
|
244 |
+
],
|
245 |
+
"index": "pypi",
|
246 |
+
"version": "==2.0.3"
|
247 |
+
},
|
248 |
+
"flake8-if-expr": {
|
249 |
+
"hashes": [
|
250 |
+
"sha256:173f6ceefdecbff532180aafe0360f6d1dd4da8b4a9b10193ddc1781291d580e",
|
251 |
+
"sha256:890c5bd0103c864492e7088bfaf4f9f5a987c336b03b2b285178456d08db3025"
|
252 |
+
],
|
253 |
+
"index": "pypi",
|
254 |
+
"version": "==1.0.0"
|
255 |
+
},
|
256 |
+
"flake8-isort": {
|
257 |
+
"hashes": [
|
258 |
+
"sha256:64454d1f154a303cfe23ee715aca37271d4f1d299b2f2663f45b73bff14e36a9",
|
259 |
+
"sha256:aa0c4d004e6be47e74f122f5b7f36554d0d78ad8bf99b497a460dedccaa7cce9"
|
260 |
+
],
|
261 |
+
"index": "pypi",
|
262 |
+
"version": "==2.8.0"
|
263 |
+
},
|
264 |
+
"flake8-logging-format": {
|
265 |
+
"hashes": [
|
266 |
+
"sha256:ca5f2b7fc31c3474a0aa77d227e022890f641a025f0ba664418797d979a779f8"
|
267 |
+
],
|
268 |
+
"index": "pypi",
|
269 |
+
"version": "==0.6.0"
|
270 |
+
},
|
271 |
+
"flake8-plugin-utils": {
|
272 |
+
"hashes": [
|
273 |
+
"sha256:1ac5eb19773d5c7fdde60b0d901ae86be9c751bf697c61fdb6609b86872f3c6e",
|
274 |
+
"sha256:24b4a3b216ad588951d3d7adef4645dcb3b32a33b878e03baa790b5a66bf3a73"
|
275 |
+
],
|
276 |
+
"version": "==1.0.0"
|
277 |
+
},
|
278 |
+
"flake8-polyfill": {
|
279 |
+
"hashes": [
|
280 |
+
"sha256:12be6a34ee3ab795b19ca73505e7b55826d5f6ad7230d31b18e106400169b9e9",
|
281 |
+
"sha256:e44b087597f6da52ec6393a709e7108b2905317d0c0b744cdca6208e670d8eda"
|
282 |
+
],
|
283 |
+
"version": "==1.0.2"
|
284 |
+
},
|
285 |
+
"flake8-print": {
|
286 |
+
"hashes": [
|
287 |
+
"sha256:324f9e59a522518daa2461bacd7f82da3c34eb26a4314c2a54bd493f8b394a68"
|
288 |
+
],
|
289 |
+
"index": "pypi",
|
290 |
+
"version": "==3.1.4"
|
291 |
+
},
|
292 |
+
"flake8-pytest": {
|
293 |
+
"hashes": [
|
294 |
+
"sha256:61686128a79e1513db575b2bcac351081d5a293811ddce2d5dfc25e8c762d33e",
|
295 |
+
"sha256:b4d6703f7d7b646af1e2660809e795886dd349df11843613dbe6515efa82c0f3"
|
296 |
+
],
|
297 |
+
"index": "pypi",
|
298 |
+
"version": "==1.3"
|
299 |
+
},
|
300 |
+
"flake8-pytest-style": {
|
301 |
+
"hashes": [
|
302 |
+
"sha256:1c2303998c509cd65c3fb047cd536787ddf953e8113bc7f086c0cd7468db4b1f",
|
303 |
+
"sha256:820503cb50b7f6aa13a9889f4c47ba35bbd666877a72ed138ae5682a9bccaf9d"
|
304 |
+
],
|
305 |
+
"index": "pypi",
|
306 |
+
"version": "==0.1.3"
|
307 |
+
},
|
308 |
+
"flake8-quotes": {
|
309 |
+
"hashes": [
|
310 |
+
"sha256:11a15d30c92ca5f04c2791bd7019cf62b6f9d3053eb050d02a135557eb118bfc"
|
311 |
+
],
|
312 |
+
"index": "pypi",
|
313 |
+
"version": "==2.1.1"
|
314 |
+
},
|
315 |
+
"flake8-return": {
|
316 |
+
"hashes": [
|
317 |
+
"sha256:03b920cf2784370af4447a754fb7133ce165a6ecf6d4f506a95c4032ece48d8a",
|
318 |
+
"sha256:a219b619cdca3cd07dae150772f21083a11ce5280e2198acbac82bd9be0f574f"
|
319 |
+
],
|
320 |
+
"index": "pypi",
|
321 |
+
"version": "==1.1.1"
|
322 |
+
},
|
323 |
+
"flake8-string-format": {
|
324 |
+
"hashes": [
|
325 |
+
"sha256:68ea72a1a5b75e7018cae44d14f32473c798cf73d75cbaed86c6a9a907b770b2",
|
326 |
+
"sha256:774d56103d9242ed968897455ef49b7d6de272000cfa83de5814273a868832f1"
|
327 |
+
],
|
328 |
+
"index": "pypi",
|
329 |
+
"version": "==0.2.3"
|
330 |
+
},
|
331 |
+
"gprof2dot": {
|
332 |
+
"hashes": [
|
333 |
+
"sha256:b43fe04ebb3dfe181a612bbfc69e90555b8957022ad6a466f0308ed9c7f22e99"
|
334 |
+
],
|
335 |
+
"version": "==2019.11.30"
|
336 |
+
},
|
337 |
"identify": {
|
338 |
"hashes": [
|
339 |
"sha256:1222b648251bdcb8deb240b294f450fbf704c7984e08baa92507e4ea10b436d5",
|
|
|
363 |
"markers": "python_version < '3.8'",
|
364 |
"version": "==1.5.0"
|
365 |
},
|
366 |
+
"isort": {
|
367 |
+
"extras": [
|
368 |
+
"pyproject"
|
369 |
+
],
|
370 |
+
"hashes": [
|
371 |
+
"sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1",
|
372 |
+
"sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd"
|
373 |
+
],
|
374 |
+
"version": "==4.3.21"
|
375 |
+
},
|
376 |
"jinja2": {
|
377 |
"hashes": [
|
378 |
+
"sha256:93187ffbc7808079673ef52771baa950426fd664d3aad1d0fa3e95644360e250",
|
379 |
+
"sha256:b0eaf100007721b5c16c1fc1eecb87409464edc10469ddc9a22a27a99123be49"
|
380 |
],
|
381 |
+
"version": "==2.11.1"
|
382 |
},
|
383 |
"markupsafe": {
|
384 |
"hashes": [
|
|
|
461 |
},
|
462 |
"nodeenv": {
|
463 |
"hashes": [
|
464 |
+
"sha256:5b2438f2e42af54ca968dd1b374d14a1194848955187b0e5e4be1f73813a5212"
|
465 |
],
|
466 |
+
"version": "==1.3.5"
|
467 |
},
|
468 |
"packaging": {
|
469 |
"hashes": [
|
|
|
479 |
],
|
480 |
"version": "==0.7.0"
|
481 |
},
|
482 |
+
"pep8-naming": {
|
483 |
+
"hashes": [
|
484 |
+
"sha256:45f330db8fcfb0fba57458c77385e288e7a3be1d01e8ea4268263ef677ceea5f",
|
485 |
+
"sha256:a33d38177056321a167decd6ba70b890856ba5025f0a8eca6a3eda607da93caf"
|
486 |
+
],
|
487 |
+
"index": "pypi",
|
488 |
+
"version": "==0.9.1"
|
489 |
+
},
|
490 |
"pluggy": {
|
491 |
"hashes": [
|
492 |
"sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0",
|
|
|
561 |
"index": "pypi",
|
562 |
"version": "==2.0.0"
|
563 |
},
|
564 |
+
"pytest-profiling": {
|
565 |
+
"hashes": [
|
566 |
+
"sha256:93938f147662225d2b8bd5af89587b979652426a8a6ffd7e73ec4a23e24b7f29",
|
567 |
+
"sha256:999cc9ac94f2e528e3f5d43465da277429984a1c237ae9818f8cfd0b06acb019"
|
568 |
+
],
|
569 |
+
"index": "pypi",
|
570 |
+
"version": "==1.7.0"
|
571 |
+
},
|
572 |
"pytz": {
|
573 |
"hashes": [
|
574 |
"sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d",
|
|
|
641 |
},
|
642 |
"sphinx": {
|
643 |
"hashes": [
|
644 |
+
"sha256:b3feeed2da588adabd0db5329a309f27317e98382122721511e901833d092028",
|
645 |
+
"sha256:fb2ce74c28154872757925edda0060b4c4102cdc86b8b30063f23399678de2ca"
|
646 |
],
|
647 |
+
"version": "==2.4.0"
|
648 |
},
|
649 |
"sphinx-rtd-theme": {
|
650 |
"hashes": [
|
|
|
696 |
],
|
697 |
"version": "==1.1.3"
|
698 |
},
|
699 |
+
"testfixtures": {
|
700 |
+
"hashes": [
|
701 |
+
"sha256:76eef0c048d6c1ad28bb74ae2b28fa9e3ea3a2f42a56715a4102480b8188e588",
|
702 |
+
"sha256:c352760016f0e5579a3e5565387e6d582ccad4db9791b6a293fdfc59d4591b97"
|
703 |
+
],
|
704 |
+
"version": "==6.12.0"
|
705 |
+
},
|
706 |
"toml": {
|
707 |
"hashes": [
|
708 |
"sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c",
|
|
|
754 |
},
|
755 |
"virtualenv": {
|
756 |
"hashes": [
|
757 |
+
"sha256:09740201a02918564a84eea071708c46ac26f3bd9b688b48fc6a86f331c536b7",
|
758 |
+
"sha256:ef3fd938ef165956e51bba0d0623508de920ca9f3ccd30c6e9f74381677e0cbb"
|
759 |
],
|
760 |
+
"version": "==20.0.1"
|
761 |
},
|
762 |
"wcwidth": {
|
763 |
"hashes": [
|
|
|
768 |
},
|
769 |
"zipp": {
|
770 |
"hashes": [
|
771 |
+
"sha256:5c56e330306215cd3553342cfafc73dda2c60792384117893f3a83f8a1209f50",
|
772 |
+
"sha256:d65287feb793213ffe11c0f31b81602be31448f38aeb8ffc2eb286c4f6f6657e"
|
773 |
],
|
774 |
+
"version": "==2.2.0"
|
775 |
}
|
776 |
}
|
777 |
}
|
pytube/cli.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
#!/usr/bin/env python3
|
|
|
2 |
"""A simple command line application to download youtube videos."""
|
3 |
|
4 |
import argparse
|
|
|
1 |
#!/usr/bin/env python3
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
"""A simple command line application to download youtube videos."""
|
4 |
|
5 |
import argparse
|
pytube/extract.py
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
import json
|
4 |
import re
|
5 |
from collections import OrderedDict
|
6 |
-
|
7 |
from html.parser import HTMLParser
|
8 |
from typing import Any, Optional, Tuple, List, Dict
|
9 |
from urllib.parse import quote, parse_qs, unquote, parse_qsl
|
|
|
3 |
import json
|
4 |
import re
|
5 |
from collections import OrderedDict
|
|
|
6 |
from html.parser import HTMLParser
|
7 |
from typing import Any, Optional, Tuple, List, Dict
|
8 |
from urllib.parse import quote, parse_qs, unquote, parse_qsl
|
tests/test_captions.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from unittest import mock
|
2 |
from unittest.mock import patch, mock_open, MagicMock
|
3 |
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
from unittest import mock
|
3 |
from unittest.mock import patch, mock_open, MagicMock
|
4 |
|
tests/test_extract.py
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
import pytest
|
4 |
|
5 |
from pytube.exceptions import RegexMatchError
|
6 |
-
|
7 |
from pytube import extract
|
8 |
|
9 |
|
|
|
3 |
import pytest
|
4 |
|
5 |
from pytube.exceptions import RegexMatchError
|
|
|
6 |
from pytube import extract
|
7 |
|
8 |
|
tests/test_query.py
CHANGED
@@ -9,7 +9,7 @@ def test_count(cipher_signature):
|
|
9 |
|
10 |
|
11 |
@pytest.mark.parametrize(
|
12 |
-
"test_input,expected",
|
13 |
[
|
14 |
({"progressive": True}, [18]),
|
15 |
({"resolution": "720p"}, [136, 247]),
|
|
|
9 |
|
10 |
|
11 |
@pytest.mark.parametrize(
|
12 |
+
("test_input", "expected"),
|
13 |
[
|
14 |
({"progressive": True}, [18]),
|
15 |
({"resolution": "720p"}, [136, 247]),
|
tests/test_request.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
import os
|
3 |
-
|
4 |
from unittest import mock
|
5 |
|
6 |
import pytest
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
import os
|
|
|
3 |
from unittest import mock
|
4 |
|
5 |
import pytest
|
tests/test_streams.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
import os
|
3 |
import random
|
4 |
-
|
5 |
from unittest import mock
|
6 |
from unittest.mock import MagicMock
|
7 |
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
import os
|
3 |
import random
|
|
|
4 |
from unittest import mock
|
5 |
from unittest.mock import MagicMock
|
6 |
|