feat: Lint .yamllint by default

This commit is contained in:
Adrien Vergé
2019-08-26 09:36:55 +02:00
parent ce0336e430
commit b62b424dd4
4 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
rules:
braces: enable

View File

@@ -33,7 +33,7 @@ class YamlLintConfig(object):
self.ignore = None
self.yaml_files = pathspec.PathSpec.from_lines(
'gitwildmatch', ['*.yaml', '*.yml'])
'gitwildmatch', ['*.yaml', '*.yml', '.yamllint'])
if file is not None:
with open(file) as f: