-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.json
52 lines (50 loc) · 1.73 KB
/
settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
// General - see also /.editorconfig
"editor.formatOnSave": true,
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
".mypy_cache": true,
".pytest_cache": true,
".ruff_cache": true,
"**/__pycache__": true,
".idea": true
},
// Python
"python.analysis.extraPaths": ["${workspaceFolder}/smart_contracts"],
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingModuleSource": "none"
},
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
// Prevent default import sorting from running; Ruff will sort imports for us anyway
"source.organizeImports": "never"
},
"editor.defaultFormatter": "ms-python.black-formatter",
},
"black-formatter.args": ["--config=pyproject.toml"],
"python.testing.pytestEnabled": true,
"ruff.enable": true,
"ruff.lint.run": "onSave",
"ruff.lint.args": ["--config=pyproject.toml"],
"ruff.importStrategy": "fromEnvironment",
"ruff.fixAll": true, //lint and fix all files in workspace
"ruff.organizeImports": true, //organize imports on save
"ruff.codeAction.disableRuleComment": {
"enable": true
},
"ruff.codeAction.fixViolation": {
"enable": true
},
"python.analysis.typeCheckingMode": "off",
"mypy.configFile": "pyproject.toml",
// set to empty array to use config from project
"mypy.targets": [],
"mypy.runUsingActiveInterpreter": true,
// On Windows, if execution policy is set to Signed (default) then it won't be able to activate the venv
// so instead let's set it to RemoteSigned for VS Code terminal
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "RemoteSigned"],
}