mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Update .pre-commit-config.yaml
This commit is contained in:
parent
3cac9489b3
commit
22ee10d4ad
3 changed files with 6 additions and 2 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
- repo: git@github.com:pre-commit/pre-commit-hooks
|
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||||
sha: 7c003425b35fff516c0ee88f4040c8c208d474bd
|
sha: 6343700aa063fe30acc319d2dc84353a35a3d6d0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
- id: autopep8-wrapper
|
||||||
|
args: ['-i', '--ignore=E265,E309,E501', '-v']
|
||||||
|
- id: check-json
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ class PrefixedCommandRunner(object):
|
||||||
|
|
||||||
will run ['/tmp/foo/foo.sh', 'bar', 'baz']
|
will run ['/tmp/foo/foo.sh', 'bar', 'baz']
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
prefix_dir,
|
prefix_dir,
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ def make_config_from_repo(repo_path, sha=None, hooks=None, check=True):
|
||||||
def write_config(directory, config):
|
def write_config(directory, config):
|
||||||
assert type(config) is OrderedDict
|
assert type(config) is OrderedDict
|
||||||
with io.open(os.path.join(directory, C.CONFIG_FILE), 'w') as config_file:
|
with io.open(os.path.join(directory, C.CONFIG_FILE), 'w') as config_file:
|
||||||
config_file.write(ordered_dump([config], **C.YAML_DUMP_KWARGS))
|
config_file.write(ordered_dump([config], **C.YAML_DUMP_KWARGS))
|
||||||
|
|
||||||
|
|
||||||
def make_consuming_repo(tmpdir_factory, repo_source):
|
def make_consuming_repo(tmpdir_factory, repo_source):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue