Skip to content

Commit

Permalink
fix formatting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
will-cromar committed May 17, 2024
1 parent 9b52d89 commit 692187c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/tpu-internal/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cpptools-themes",
"BazelBuild.vscode-bazel",
"DevonDCarew.bazel-code",
"StackBuild.bazel-stack-vscode",
"StackBuild.bazel-stack-vscode-cc",
"xaver.clang-format",
"ryanluker.vscode-coverage-gutters",
"ms-azuretools.vscode-docker",
"ms-python.python"
"ms-python.python",
"eeyore.yapf"
]
}
}
}
}
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ We recommend you to use our prebuilt Docker image to start your development work
```bash
ln -s pytorch/xla/.devcontainer/ .devcontainer
ln -s pytorch/xla/contrib/vscode/ .vscode
ln -s pytorch/xla/.style.yapf .style.yapf
ln -s pytorch/xla/.clang-format .clang-format
```

* From VSCode's command menu, run `Reopen in Container` to open your workspace in one of our pre-built Docker containers. Select the correct container config based on your local accelerator (default to `tpu-contributor` if you are not sure).
Expand Down
18 changes: 14 additions & 4 deletions contrib/vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@
"coverage-gutters.coverageFileNames": [
"./bazel-out/_coverage/_coverage_report.dat"
],
"lcov.path": [
"./bazel-out/_coverage/_coverage_report.dat"
"git.detectSubmodules": false,
"[python]": {
"editor.defaultFormatter": "eeyore.yapf",
"editor.formatOnSave": true,
},
"python.analysis.exclude": [
"**/third_party",
"**/build",
"**/__pycache__",
"**/.git",
],
"python.formatting.provider": "yapf",
"editor.formatOnSave": true
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format",
"editor.formatOnSave": true,
}
}

0 comments on commit 692187c

Please sign in to comment.