We're not using pylint

This commit is contained in:
Anthony Sottile 2016-05-20 15:38:12 -07:00
parent 7c213f4482
commit efe33ffe5c
5 changed files with 5 additions and 28 deletions

View file

@ -1,6 +1,5 @@
from __future__ import unicode_literals from __future__ import unicode_literals
# pylint:disable=invalid-name
PY2 = str is bytes PY2 = str is bytes
PY3 = str is not bytes PY3 = str is not bytes

View file

@ -1,19 +0,0 @@
[MESSAGES CONTROL]
disable=locally-disabled,fixme,missing-docstring,abstract-method,useless-else-on-loop,invalid-name
[REPORTS]
output-format=colorized
reports=no
[BASIC]
const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$
[FORMAT]
max-line-length=131
[TYPECHECK]
ignored-classes=pytest
[DESIGN]
min-public-methods=0

View file

@ -1,10 +1,8 @@
-e . -e .
astroid<1.3.3
coverage coverage
flake8 flake8
mock mock
pylint<1.4
pytest pytest
# setuptools breaks pypy3 with extraneous output # setuptools breaks pypy3 with extraneous output

View file

@ -457,9 +457,9 @@ def test_local_hook_for_stages(
config = OrderedDict(( config = OrderedDict((
('repo', 'local'), ('repo', 'local'),
('hooks', (OrderedDict(( ('hooks', (OrderedDict((
('id', 'pylint'), ('id', 'flake8'),
('name', 'hook 1'), ('name', 'hook 1'),
('entry', 'python -m pylint.__main__'), ('entry', 'python -m flake8.__main__'),
('language', 'system'), ('language', 'system'),
('files', r'\.py$'), ('files', r'\.py$'),
('stages', stage_for_first_hook) ('stages', stage_for_first_hook)
@ -491,9 +491,9 @@ def test_local_hook_passes(repo_with_passing_hook, mock_out_store_directory):
config = OrderedDict(( config = OrderedDict((
('repo', 'local'), ('repo', 'local'),
('hooks', (OrderedDict(( ('hooks', (OrderedDict((
('id', 'pylint'), ('id', 'flake8'),
('name', 'PyLint'), ('name', 'flake8'),
('entry', 'python -m pylint.__main__'), ('entry', 'python -m flake8.__main__'),
('language', 'system'), ('language', 'system'),
('files', r'\.py$'), ('files', r'\.py$'),
)), OrderedDict(( )), OrderedDict((

View file

@ -11,7 +11,6 @@ commands =
coverage run -m pytest {posargs:tests} coverage run -m pytest {posargs:tests}
# TODO: when dropping py26, change to 100 # TODO: when dropping py26, change to 100
coverage report --show-missing --fail-under 99 coverage report --show-missing --fail-under 99
# pylint {[tox]project} testing tests setup.py
pre-commit run --all-files pre-commit run --all-files
[testenv:venv] [testenv:venv]