mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Merge pull request #373 from pre-commit/not_using_pylint
We're not using pylint
This commit is contained in:
commit
6654fee5f9
5 changed files with 5 additions and 28 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
19
pylintrc
19
pylintrc
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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((
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue