Skip to content

Commit a1c8b41

Browse files
add YAML lint and editor config files
1 parent 444daba commit a1c8b41

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
# 4 space indentation
15+
[*.py]
16+
indent_size = 4
17+
18+
[*.json]
19+
indent_size = 4
20+
21+
# 2 space indentation
22+
[*.yml]
23+
indent_size = 2
24+
25+
[*.{md,rst}]
26+
indent_size = 4
27+
trim_trailing_whitespace = false

.yamllint

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
3+
extends: default
4+
5+
ignore:
6+
- .tox
7+
- .venv
8+
- .idea
9+
- .thinking
10+
11+
rules:
12+
line-length:
13+
level: warning
14+
ignore:
15+
- .github/workflows/*

0 commit comments

Comments
 (0)