Skip to content

Commit

Permalink
Yamllint: Allow to customize settings
Browse files Browse the repository at this point in the history
Move default settings from template to .yamllint_defaults.yml and allow
customizations in .yamllint.yml.
  • Loading branch information
richm authored and tyll committed Apr 1, 2020
1 parent b5ae538 commit d619610
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# SPDX-License-Identifier: MIT
---
ignore: |
/.tox/
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
truthy: disable
document-start: disable
extends: .yamllint_defaults.yml
# possible customizations over the base yamllint config
# skip the yaml files in the /tests/ directory
# NOTE: If you want to customize `ignore` you'll have to
# copy in all of the config from .yamllint.yml, then
# add your own - so if you want to just add /tests/ to
# be ignored, you'll have to add the ignores from the base
# ignore: |
# /tests/
# /.tox/
# skip checking line length
# NOTE: the above does not apply to `rules` - you do not
# have to copy all of the rules from the base config
# rules:
# line-length: disable
14 changes: 14 additions & 0 deletions .yamllint_defaults.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: MIT
---
ignore: |
/.tox/
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
truthy: disable
document-start: disable

0 comments on commit d619610

Please sign in to comment.