Skip to content

Commit

Permalink
Update vscode recommendations
Browse files Browse the repository at this point in the history
Update recommended extensions and settings for the latest vscode version, and to use the new rust toolchain approach
  • Loading branch information
alan-cooney committed Dec 11, 2023
1 parent ed3076b commit 482e8bf
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 62 deletions.
39 changes: 0 additions & 39 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,6 @@
"--gpus",
"all"
],
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"mypy.dmypyExecutable": "dmypy"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"christian-kohler.path-intellisense",
"davidanson.vscode-markdownlint",
"donjayamanne.githistory",
"donjayamanne.python-extension-pack",
"github.copilot",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"ionutvmi.path-autocomplete",
"matangover.mypy",
"mikoz.autoflake-extension",
"ms-python.black-formatter",
"ms-python.isort",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.jupyter",
"ms-vsliveshare.vsliveshare-pack",
"njpwerner.autodocstring",
"richie5um2.vscode-sort-json",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker-british-english",
"streetsidesoftware.code-spell-checker",
"tushortz.python-extended-snippets",
"yzhang.markdown-all-in-one"
]
}
},
"containerUser": "user",
// Install any dependencies
"postCreateCommand": "poetry env use 3.11 && poetry install --with dev,jupyter"
Expand Down
93 changes: 92 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,108 @@
{
"language": "en,en-GB",
"words": [
"allclose",
"arange",
"arithmatex",
"astroid",
"autocast",
"autoencoder",
"autoencoders",
"autofix",
"capturable",
"categoricalwprobabilities",
"circuitsvis",
"coeff",
"colab",
"cuda",
"cudnn",
"datapoints",
"devcontainer",
"devel",
"dmypy",
"docstrings",
"dtype",
"dtypes",
"dunder",
"earlyterminate",
"einops",
"einsum",
"endoftext",
"gelu",
"githistory",
"htmlproofer",
"huggingface",
"hyperband",
"hyperparameters",
"imageuri",
"imputewhilerunning",
"interpretability",
"intuniform",
"invloguniform",
"invloguniformvalues",
"ipynb",
"itemwise",
"jaxtyping",
"kaiming",
"keepdim",
"lognormal",
"loguniform",
"loguniformvalues",
"mathbb",
"mathbf",
"maxiter",
"miniter",
"mkdocs",
"mkdocstrings",
"mknotebooks",
"monosemantic",
"monosemanticity",
"multipled",
"ncols",
"ndarray",
"nelement",
"neox",
"nonlinerity",
"numel",
"optim",
"penality",
"perp",
"poethepoet",
"polysemantic",
"polysemantically",
"polysemanticity",
"precommit",
"pretokenized",
"pyproject",
"pyright",
"pytest",
"qbeta",
"qlognormal",
"qloguniform",
"qloguniformvalues",
"qnormal",
"quniform",
"randn",
"randperm",
"relu",
"resampler",
"resid",
"roneneldan",
"rtol",
"runcap",
"sharded",
"snapshottest",
"solu",
"tinystories",
"tqdm",
"transformer_lens",
"typecheck",
"ultralow",
"ungraphed",
"unsqueeze",
"venv",
"virtualenv"
"virtualenv",
"virtualenvs",
"wandb"
]
}
16 changes: 5 additions & 11 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
{
"recommendations": [
"christian-kohler.path-intellisense",
"davidanson.vscode-markdownlint",
"donjayamanne.githistory",
"donjayamanne.python-extension-pack",
"github.copilot",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"ionutvmi.path-autocomplete",
"matangover.mypy",
"mikoz.autoflake-extension",
"ms-python.black-formatter",
"ms-python.isort",
"ms-python.pylint",
"littlefoxteam.vscode-python-test-adapter",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.jupyter",
"ms-vsliveshare.vsliveshare-pack",
"njpwerner.autodocstring",
"richie5um2.vscode-sort-json",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker-british-english",
"streetsidesoftware.code-spell-checker",
"tushortz.python-extended-snippets",
"yzhang.markdown-all-in-one"
"yzhang.markdown-all-in-one",
"kevinrose.vsc-python-indent",
"donjayamanne.python-environment-manager",
"tamasfe.even-better-toml"
]
}
51 changes: 40 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,47 @@
{
"rewrap.autoWrap.enabled": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": true
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
},
"rewrap.reformat": false,
"editor.formatOnSave": true,
"evenBetterToml.formatter.allowedBlankLines": 1,
"evenBetterToml.formatter.arrayAutoCollapse": true,
"evenBetterToml.formatter.arrayAutoExpand": true,
"evenBetterToml.formatter.arrayTrailingComma": true,
"evenBetterToml.formatter.columnWidth": 100,
"evenBetterToml.formatter.compactArrays": true,
"evenBetterToml.formatter.compactEntries": true,
"evenBetterToml.formatter.compactInlineTables": true,
"evenBetterToml.formatter.indentEntries": true,
"evenBetterToml.formatter.indentString": " ",
"evenBetterToml.formatter.indentTables": true,
"evenBetterToml.formatter.inlineTableExpand": true,
"evenBetterToml.formatter.reorderArrays": true,
"evenBetterToml.formatter.reorderKeys": true,
"evenBetterToml.formatter.trailingNewline": true,
"evenBetterToml.schema.enabled": true,
"evenBetterToml.schema.links": true,
"evenBetterToml.syntax.semanticTokens": false,
"notebook.formatOnCellExecution": false,
"notebook.formatOnSave.enabled": false,
"python.analysis.autoFormatStrings": true,
"python.analysis.inlayHints.functionReturnTypes": false,
"python.analysis.typeCheckingMode": "basic",
"python.languageServer": "Pylance",
"python.terminal.activateEnvInCurrentTerminal": true,
"python.testing.pytestEnabled": true,
"rewrap.autoWrap.enabled": true,
"rewrap.wrappingColumn": 100,
"pylint.importStrategy": "useBundled",
"notebook.formatOnCellExecution": true,
"notebook.formatOnSave.enabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"mypy-type-checker.importStrategy": "fromEnvironment",
"pylint.ignorePatterns": [
"*"
]
}

0 comments on commit 482e8bf

Please sign in to comment.