mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Merge pull request #563 from pre-commit/upgrade_add_trailing_comma_more
Upgrade add-trailing-comma to 0.5.1
This commit is contained in:
commit
8bb9532b54
2 changed files with 3 additions and 3 deletions
|
|
@ -22,6 +22,6 @@
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
language_version: python2.7
|
language_version: python2.7
|
||||||
- repo: https://github.com/asottile/add-trailing-comma
|
- repo: https://github.com/asottile/add-trailing-comma
|
||||||
sha: v0.4.0
|
sha: v0.5.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ def test_config_with_local_hooks_definition_fails(config_obj):
|
||||||
'language': 'script',
|
'language': 'script',
|
||||||
'files': '',
|
'files': '',
|
||||||
'args': ['hello', 'world'],
|
'args': ['hello', 'world'],
|
||||||
}]
|
}],
|
||||||
}],
|
}],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -185,7 +185,7 @@ def test_validate_manifest_main(args, expected_output):
|
||||||
'name': 'b',
|
'name': 'b',
|
||||||
'entry': 'c',
|
'entry': 'c',
|
||||||
'language': 'python',
|
'language': 'python',
|
||||||
'files': r'\.py$'
|
'files': r'\.py$',
|
||||||
}],
|
}],
|
||||||
True,
|
True,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue