mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
pyflakes -> flake8
This commit is contained in:
parent
2c7ec7a744
commit
c91b244105
5 changed files with 9 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||
sha: 84fbf05803f25fea2ad4a9509b3666840bf580b4
|
||||
sha: ca93f6834f2afc8a8f7de46c0e02076419077c7a
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
files: \.(py|sh|yaml)$
|
||||
|
|
@ -11,13 +11,13 @@
|
|||
files: \.py$
|
||||
- id: name-tests-test
|
||||
files: tests/.+\.py$
|
||||
- id: pyflakes
|
||||
- id: flake8
|
||||
files: \.py$
|
||||
args: [--max-line-length=131]
|
||||
- repo: git@github.com:pre-commit/pre-commit
|
||||
sha: 3cfc49b522dee27cdcce83781cd874c5638ad6c1
|
||||
sha: 2c7ec7a744908896af3afd140346e690deca7782
|
||||
hooks:
|
||||
- id: validate_config
|
||||
files: ^\.pre-commit-config.yaml$
|
||||
- id: validate_manifest
|
||||
files: ^hooks.yaml$
|
||||
exclude: ^$
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import collections
|
||||
|
||||
|
||||
def auto_namedtuple(classname='auto_namedtuple', **kwargs):
|
||||
"""Returns an automatic namedtuple object.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import sys
|
||||
|
||||
|
||||
def func():
|
||||
print repr(sys.argv[1:])
|
||||
print 'Hello World'
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ def copy_tree_to_path(src_dir, dest_dir):
|
|||
else:
|
||||
shutil.copy(srcname, destname)
|
||||
|
||||
|
||||
def is_valid_according_to_schema(obj, schema):
|
||||
try:
|
||||
jsonschema.validate(obj, schema)
|
||||
|
|
|
|||
4
tox.ini
4
tox.ini
|
|
@ -10,8 +10,8 @@ commands =
|
|||
coverage erase
|
||||
coverage run -m pytest {posargs:tests}
|
||||
coverage report --show-missing --fail-under 93
|
||||
flake8 {[tox]project} tests setup.py
|
||||
# pylint {[tox]project} tests setup.py
|
||||
flake8 {[tox]project} testing tests setup.py
|
||||
# pylint {[tox]project} testing tests setup.py
|
||||
|
||||
[testenv:venv]
|
||||
envdir = venv-{[tox]project}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue