Skip to content

Commit

Permalink
FIX: point to absolute mypy config path (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Oct 6, 2023
1 parent 5f4f7b1 commit 296e1fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"git.rebaseWhenSync": true,
"github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"],
"mypy-type-checker.args": ["--config-file", "pyproject.toml"],
"mypy-type-checker.args": ["--config-file=${workspaceFolder}/pyproject.toml"],
"mypy-type-checker.importStrategy": "fromEnvironment",
"python.analysis.autoImportCompletions": false,
"python.analysis.inlayHints.pytestParameters": true,
Expand Down
4 changes: 3 additions & 1 deletion src/repoma/check_dev_files/mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ 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.args": [
"--config-file=${workspaceFolder}/pyproject.toml"
],
"mypy-type-checker.importStrategy": "fromEnvironment",
}
executor(set_setting, settings)
Expand Down

0 comments on commit 296e1fa

Please sign in to comment.