Skip to content

Commit 0667281

Browse files
authored
πŸ§‘β€πŸ’» update editorconfig and vscode settings (#687)
2 parents 7b9c240 + 5b116dd commit 0667281

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

β€Ž.editorconfig

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,24 @@ root = true
55
[*]
66
charset = utf-8
77
end_of_line = lf
8-
indent_size = 4
98
indent_style = space
109
insert_final_newline = true
1110
trim_trailing_whitespace = true
1211

13-
[*.{json,jsonc,yml,yaml}]
12+
[*.{json,jsonc,yaml,yml}]
1413
indent_size = 2
14+
15+
[*.{md,py,pyi,toml}]
16+
indent_size = 4
17+
18+
[*.mypyignore,*.md]
19+
max_line_length = 200
20+
21+
[*.py]
22+
max_line_length = 88
23+
24+
[*.pyi]
25+
max_line_length = 130
26+
27+
[*.toml]
28+
max_line_length = 100

β€Ž.vscode/extensions.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"detachhead.basedpyright",
55
"ms-python.mypy-type-checker",
66
"ms-python.python",
7-
"tamasfe.even-better-toml",
8-
"tekumara.typos-vscode"
7+
"seatonjiang.gitmoji-vscode",
8+
"tamasfe.even-better-toml"
99
],
10-
"unwantedRecommendations": ["ms-pyright.pyright", "ms-python.vscode-pylance"]
10+
"unwantedRecommendations": [
11+
"ms-pyright.pyright",
12+
"ms-python.vscode-pylance"
13+
]
1114
}

β€Ž.vscode/settings.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22
"[json][jsonc][yaml][yml]": {
33
"editor.tabSize": 2
44
},
5-
"[markdown][python]": {
6-
"editor.rulers": [130]
5+
"[markdown]": {
6+
"editor.rulers": [
7+
200
8+
]
9+
},
10+
"[python]": {
11+
"editor.rulers": [
12+
130
13+
]
714
},
815
"[toml]": {
9-
"editor.rulers": [100],
10-
"editor.tabSize": 4
16+
"editor.rulers": [
17+
100
18+
]
1119
},
20+
"editor.tabSize": 4,
1221
"evenBetterToml.formatter.alignComments": true,
1322
"evenBetterToml.formatter.allowedBlankLines": 2,
1423
"evenBetterToml.formatter.arrayTrailingComma": true,

0 commit comments

Comments
Β (0)