diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..e82fa3b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "tombi-toml.tombi", + ], +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 211c45d..8d69bce 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,9 @@ { "editor.formatOnSave": true, + "[toml]": { + "editor.defaultFormatter": "tombi-toml.tombi", + "editor.formatOnSave": true, + }, "[json]": { "files.insertFinalNewline": true, "files.trimTrailingWhitespace": true, diff --git a/tombi.toml b/tombi.toml new file mode 100644 index 0000000..381f5ea --- /dev/null +++ b/tombi.toml @@ -0,0 +1,15 @@ +[format.rules] +indent-style = "space" +indent-width = 4 +line-width = 80 + +[[schemas]] +path = "https://json.schemastore.org/pyproject.json" +include = ["pyproject.toml"] + +[schemas.format.rules] +table-keys-order.enabled = false + +[[schemas]] +path = "https://json.schemastore.org/tombi.json" +include = ["tombi.toml"]