forked from pypsa-meets-earth/pypsa-earth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yamllint
41 lines (38 loc) · 1.13 KB
/
.yamllint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors
#
# SPDX-License-Identifier: CC0-1.0
# Copied from https://github.com/PyPSA/pypsa-eur/pull/302/files
# Configuration is based on and overwrites 'default' configuration
extends: default
rules:
braces:
# Do not allow flow mappings using curly braces "{" and "}"
forbid: true
brackets:
max-spaces-inside: 0
max-spaces-inside-empty: 0
comments:
require-starting-space: true
min-spaces-from-content: 2
# Force correct indentation of comments
# yamllint disable-line rule:braces
comments-indentation: {}
# Do not require a specific document start marker
document-start: disable
document-end: disable
empty-lines:
max: 3
max-end: 0
indentation:
spaces: consistent
# Consistent indent-sequences clash with environment.yaml exported by conda
indent-sequences: whatever
# Disallow duplicate keys in listings
# yamllint disable-line rule:braces
key-duplicates: {}
line-length:
level: warning
max: 88
new-line-at-end-of-file: enable
truthy:
check-keys: false # Disable truthy check hits on keys like "on": ...