Skip to content

Commit

Permalink
JSON files are better with 2 spaces
Browse files Browse the repository at this point in the history
Dockerfiles vscode autoformatter is ugly. Enable autoformat only for python.
  • Loading branch information
yajo committed Dec 4, 2019
1 parent 324da9c commit 8bc7d38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{md,yaml,yml,yaml}]
[*.{md,json,yaml,yml,yaml}]
indent_size = 2
19 changes: 11 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"python.autoComplete.extraPaths": ["./lib", "./tests"],
"editor.formatOnSave": true,
"editor.formatOnSaveTimeout": 1000,
"python.formatting.provider": "black",
"python.linting.flake8Args": ["--max-line-length=88"],
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": true,
"python.pythonPath": "python3"
"python.autoComplete.extraPaths": ["./lib", "./tests"],
"editor.formatOnSaveTimeout": 1000,
"python.formatting.provider": "black",
"python.linting.flake8Args": ["--max-line-length=88"],
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": true,
"python.pythonPath": "python3",

"[python]": {
"editor.formatOnSave": true
}
}

0 comments on commit 8bc7d38

Please sign in to comment.