Skip to content

Commit

Permalink
add vscode setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Oct 3, 2023
1 parent 27808fb commit 99fdea4
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .vscode/pcmdi_metrics.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// This file stores the pcmdi_metrics repository's VS Code workspace settings.
// Simply open up this file in VS Code and the editor will be automatically configured using this file.
// Workspace settings take precedence over your user settings.
{
"folders": [
{
"path": ".."
}
],
"settings": {
// ===================
// Editor settings
// ===================
"editor.formatOnSave": true,
// ===================
// Python settings
// ===================
"[python]": {
// editor.rulers: [comments, max line length, wrap line length],
// Black does not wrap comments.
"editor.rulers": [80, 88, 120],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"black-formatter.importStrategy": "fromEnvironment",
// Code Formatting and Linting
// ---------------------------
"flake8.args": ["--config=setup.cfg"],
"flake8.importStrategy": "fromEnvironment",
// Type checking
// ---------------------------
"mypy-type-checker.args": ["--config=pyproject.toml"],
"mypy-type-checker.importStrategy": "fromEnvironment",
// Testing
// ---------------------------
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
// NOTE: Debugger doesn't work if pytest-cov is enabled, so set "--no-cov"
// https://github.com/microsoft/vscode-python/issues/693
"python.testing.pytestArgs": ["--no-cov"],
// ===================
// Extension settings
// ===================
"jupyter.notebookFileRoot": "${workspaceFolder}",
"autoDocstring.docstringFormat": "numpy",
"[restructuredtext]": {
"editor.rulers": [88, 120],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120
}
}
}

0 comments on commit 99fdea4

Please sign in to comment.