mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Merge b85d8a5556 into 9bf684c131
This commit is contained in:
commit
e5aadd79fe
3 changed files with 11 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[](https://travis-ci.org/pre-commit/pre-commit-hooks)
|
||||
[](https://travis-ci.org/CalthorpeAnalytics/pre-commit-hooks)
|
||||
[](https://coveralls.io/github/pre-commit/pre-commit-hooks?branch=master)
|
||||
[](https://ci.appveyor.com/project/asottile/pre-commit-hooks/branch/master)
|
||||
|
||||
|
|
|
|||
|
|
@ -49,9 +49,14 @@ def check_yaml(argv=None):
|
|||
'Implies --allow-multiple-documents'
|
||||
),
|
||||
)
|
||||
parser.add_argument('--ignore-tags', type=lambda s: s.split(','), default=[],
|
||||
help='Custom tags to ignore.')
|
||||
parser.add_argument('filenames', nargs='*', help='Yaml filenames to check.')
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
for tag in args.ignore_tags:
|
||||
Loader.add_constructor(tag, lambda *a, **k: None)
|
||||
|
||||
load_fn = LOAD_FNS[Key(multi=args.multi, unsafe=args.unsafe)]
|
||||
|
||||
retval = 0
|
||||
|
|
|
|||
9
setup.py
9
setup.py
|
|
@ -25,10 +25,11 @@ setup(
|
|||
packages=find_packages(exclude=('tests*', 'testing*')),
|
||||
install_requires=[
|
||||
# quickfix to prevent pycodestyle conflicts
|
||||
'flake8!=2.5.3',
|
||||
'autopep8>=1.3',
|
||||
'pyyaml',
|
||||
'six',
|
||||
'flake8==3.5.0',
|
||||
'autopep8==1.3.5',
|
||||
'pycodestyle==2.3.1',
|
||||
'pyyaml==3.12',
|
||||
'six==1.11.0',
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue