-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |