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,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue