Skip to content

Commit

Permalink
DX: specify config file for mypy in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jul 9, 2023
1 parent 043f671 commit fbec117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"git.rebaseWhenSync": true,
"github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"],
"mypy-type-checker.args": ["--config-file", "pyproject.toml"],
"mypy-type-checker.importStrategy": "fromEnvironment",
"python.analysis.autoImportCompletions": false,
"python.analysis.inlayHints.pytestParameters": true,
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def _update_vscode_settings() -> None:
else:
executor(add_extension_recommendation, "ms-python.mypy-type-checker")
settings = {
"mypy-type-checker.args": ["--config-file", "pyproject.toml"],
"mypy-type-checker.importStrategy": "fromEnvironment",
"python.linting.mypyEnabled": False,
}
Expand Down

0 comments on commit fbec117

Please sign in to comment.