Skip to content

Commit

Permalink
additional linting plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
hbmartin committed Feb 10, 2020
1 parent 354cf30 commit 8734cba
Show file tree
Hide file tree
Showing 10 changed files with 235 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
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
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
max-line-length = 89

[isort]
34 changes: 22 additions & 12 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,31 @@ name = "pypi"
typing_extensions = "*"

[dev-packages]
"flake8" = "*"
pytest = "*"
pytest-mock = "*"
pre-commit = "*"
pytest-cov = "*"
coveralls = "*"
sphinx_rtd_theme = "*"
mypy = "*"
black = "==19.10b0"
codecov = "*"
coveralls = "*"
flake8 = "*"
flake8-breakpoint = "*"
flake8-broken-line = "*"
flake8-bugbear ="*"
flake8-builtins = "*"
flake8-comprehensions ="*"
flake8-eradicate = "*"
flake8-broken-line = "*"
pep8-naming = "*"
flake8-string-format = "*"
flake8-executable = "*"
flake8-if-expr = "*"
flake8-isort = "*"
flake8-logging-format = "*"
flake8-print = "*"
flake8-pytest = "*"
flake8-pytest-style = "*"
flake8-quotes = "*"
pytest-profiling = "*"
flake8-return = "*"
flake8-string-format = "*"
mypy = "*"
pep8-naming = "*"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"
pytest-profiling = "*"
sphinx_rtd_theme = "*"
227 changes: 209 additions & 18 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pytube/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""A simple command line application to download youtube videos."""

import argparse
Expand Down
1 change: 0 additions & 1 deletion pytube/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
import re
from collections import OrderedDict

from html.parser import HTMLParser
from typing import Any, Optional, Tuple, List, Dict
from urllib.parse import quote, parse_qs, unquote, parse_qsl
Expand Down
1 change: 1 addition & 0 deletions tests/test_captions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from unittest import mock
from unittest.mock import patch, mock_open, MagicMock

Expand Down
1 change: 0 additions & 1 deletion tests/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest

from pytube.exceptions import RegexMatchError

from pytube import extract


Expand Down
Loading

0 comments on commit 8734cba

Please sign in to comment.