-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.json
114 lines (102 loc) · 3.93 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
// General UI settings
"window.confirmSaveUntitledWorkspace": false,
"update.enableWindowsBackgroundUpdates": true,
"window.zoomLevel": 2,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"security.workspace.trust.untrustedFiles": "open",
"git.confirmSync": false,
// Editor settings
"editor.minimap.enabled": false,
"editor.stickyScroll.enabled": true,
"editor.stickyTabStops": true,
"editor.fontLigatures": true,
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
// Terminal settings
"terminal.integrated.profiles.windows": {
"Git Bash": {
"path": ["C:\\Program Files\\Git\\bin\\bash.exe"],
"args": ["--login"]
}
},
"terminal.integrated.shellIntegration.enabled": false,
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.stickyScroll.enabled": true,
"terminal.integrated.fontFamily": "Cascadia Code",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorWidth": 2,
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.defaultLocation": "editor",
"terminal.integrated.enableVisualBell": true,
"accessibility.signals.terminalBell": {"sound": "on"},
"workbench.editor.editorActionsLocation": "hidden",
// Zen Mode settings
"zenMode.showTabs": "none",
"zenMode.centerLayout": false,
"zenMode.hideLineNumbers": true,
// File and Workspace settings
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/__pycache__": true,
"**/.pytest_cache": true,
"**/.vscode": true,
"**/.ipynb_checkpoints": true,
"**/**.egg-info": true
},
// Python settings
"debugpy.showPythonInlineValues": true,
"python.defaultInterpreterPath": "C:\\Mambaforge\\envs\\311\\python.exe",
"python.terminal.activateEnvironment": true,
"python.analysis.typeCheckingMode": "standard",
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.exclude": ["**/node_modules", "**/__pycache__", ".git", "**/notebooks", "**/scripts", "**/notebooks/**"],
"python.analysis.ignore": ["**/node_modules", "**/__pycache__", ".git", "**/notebooks", "**/scripts", "**/notebooks/**"],
// Jupyter settings
"jupyter.interactiveWindow.creationMode": "single",
"interactiveWindow.executeWithShiftEnter": true,
"jupyter.interactiveWindow.textEditor.executeSelection": true,
"jupyter.askForKernelRestart": false,
"notebook.lineNumbers": "on",
"notebook.output.wordWrap": true,
"jupyter.runStartupCommands": [
"%load_ext autoreload",
"%autoreload 2",
"import sys",
"import os",
"def find_root_dir(current_path, folder_names):",
" while current_path != os.path.dirname(current_path):",
" for folder_name in folder_names:",
" if current_path.endswith(folder_name):",
" return current_path[:-(len(folder_name))]",
" current_path = os.path.dirname(current_path)",
" return current_path",
"folders = ['notebooks', 'scripts', 'tests']",
"current_path = os.getcwd()",
"root_dir = find_root_dir(current_path, folders)",
"if root_dir not in sys.path:",
" sys.path.append(root_dir)",
"if root_dir != os.path.dirname(root_dir):",
" os.chdir(root_dir)"
],
// Remote SSH settings
"remote.SSH.remotePlatform": {
"cdsw-public": "linux"
},
// Linting settings
"ruff.lint.args": [
"--ignore=F401,E402,E731"
],
}