Skip to content

Commit

Permalink
Merge 9dba092 into e559fde
Browse files Browse the repository at this point in the history
  • Loading branch information
xavdid-stripe committed May 29, 2024
2 parents e559fde + 9dba092 commit 0768ee0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"recommendations": [
"ms-python.python",
"EditorConfig.editorconfig",
"ms-python.flake8",
"charliermarsh.ruff"
"EditorConfig.editorconfig", // default
"ms-python.python", // intellisense
"ms-python.flake8", // linting
"charliermarsh.ruff" // formatting
]
}
17 changes: 14 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@

"editor.renderWhitespace": "all",
"files.exclude": {
"**/*.pyc": { "when": "$(basename).py" },
"**/__pycache__": true
"**/*.pyc": true,
"**/__pycache__": true,
".pytest_cache": true,
".mypy_cache": true,
".ruff_cache": true,
".tox": true,
"*.egg-info": true,
"venv": true
},
// uses default venv name from Makefile
"python.defaultInterpreterPath": "./venv/bin/python",

// Formatting
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},

// Tests
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,

"python.terminal.activateEnvironment": true,
"python.defaultInterpreterPath": "~/venv/bin/python3",
"python.analysis.diagnosticMode": "workspace",
"python.analysis.typeCheckingMode": "basic",
"ruff.lint.enable": false // in favor of flake8
}

0 comments on commit 0768ee0

Please sign in to comment.