|
1 | 1 | { |
2 | | - "cSpell.words": ["ipxact", "setuptools", "systemverilog", "venv", "vhdl"], |
| 2 | + "makefile.configureOnOpen": false, |
| 3 | + // Python settings |
| 4 | + "settings": { |
| 5 | + "osx": { |
| 6 | + "python.defaultInterpreterPath": "./venv/bin/python" |
| 7 | + }, |
| 8 | + "linux": { |
| 9 | + "python.defaultInterpreterPath": "./venv/bin/python" |
| 10 | + }, |
| 11 | + "windows": { |
| 12 | + "python.defaultInterpreterPath": ".\\venv\\Scripts\\python.exe" |
| 13 | + } |
| 14 | + }, |
| 15 | + // Optional: let YOUR script handle env activation instead of the Python extension |
| 16 | + "python.terminal.activateEnvironment": false, |
| 17 | + // macOS: open zsh, source your script, then drop into a login shell |
| 18 | + "terminal.integrated.profiles.osx": { |
| 19 | + "Project (source_me)": { |
| 20 | + "path": "/bin/zsh", |
| 21 | + "args": ["-l", "-c", "source ${workspaceFolder}/source_me; exec zsh -l"], |
| 22 | + "env": { |
| 23 | + "PYTHONPATH": "${workspaceFolder}" |
| 24 | + } |
| 25 | + } |
| 26 | + }, |
| 27 | + // Linux: open bash, source your script, then drop into a login shell |
| 28 | + "terminal.integrated.profiles.linux": { |
| 29 | + "Project (source_me)": { |
| 30 | + "path": "/bin/bash", |
| 31 | + "args": ["-l", "-c", "source ${workspaceFolder}/source_me; exec bash -l"], |
| 32 | + "env": { |
| 33 | + "PYTHONPATH": "${workspaceFolder}" |
| 34 | + } |
| 35 | + } |
| 36 | + }, |
| 37 | + "terminal.integrated.defaultProfile.osx": "Project (source_me)", |
| 38 | + "terminal.integrated.defaultProfile.linux": "Project (source_me)", |
| 39 | + "pythonTestExplorer.testFramework": "pytest", |
| 40 | + // Pytest settings to show print output |
| 41 | + "python.testing.pytestArgs": ["-s", "-v"], |
| 42 | + "python.testing.unittestEnabled": false, |
| 43 | + "python.testing.pytestEnabled": true, |
| 44 | + // Editor settings |
3 | 45 | "editor.formatOnSave": true, |
4 | | - "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 46 | + "editor.detectIndentation": true, |
| 47 | + "editor.rulers": [120], |
| 48 | + "editor.tabSize": 4, |
| 49 | + // File associations |
| 50 | + "files.associations": { |
| 51 | + "*.py": "python" |
| 52 | + }, |
| 53 | + // Exclude patterns |
| 54 | + "files.exclude": { |
| 55 | + "**/__pycache__": true, |
| 56 | + "**/*.pyc": true, |
| 57 | + "**/.pytest_cache": true, |
| 58 | + "**/venv": false |
| 59 | + }, |
| 60 | + // Search settings |
| 61 | + "search.exclude": { |
| 62 | + "**/__pycache__": true, |
| 63 | + "**/*.pyc": true, |
| 64 | + "**/venv": true, |
| 65 | + "**/.git": true |
| 66 | + }, |
| 67 | + // Ruff integration for Python |
| 68 | + "[python]": { |
| 69 | + "editor.defaultFormatter": "charliermarsh.ruff", |
| 70 | + "editor.formatOnSave": true, |
| 71 | + "editor.codeActionsOnSave": { |
| 72 | + "source.fixAll.ruff": "explicit", |
| 73 | + "source.organizeImports.ruff": "explicit" |
| 74 | + } |
| 75 | + }, |
| 76 | + // Disable MyPy type checking |
| 77 | + "python.analysis.typeCheckingMode": "off", |
| 78 | + "mypy-type-checker.args": [], |
| 79 | + // Terminal settings |
| 80 | + "terminal.integrated.env.osx": { |
| 81 | + "PYTHONPATH": "${workspaceFolder}" |
| 82 | + }, |
| 83 | + "terminal.integrated.env.linux": { |
| 84 | + "PYTHONPATH": "${workspaceFolder}" |
| 85 | + }, |
| 86 | + "terminal.integrated.env.windows": { |
| 87 | + "PYTHONPATH": "${workspaceFolder}" |
| 88 | + }, |
| 89 | + // Extensions settings |
| 90 | + "extensions.disabled": { |
| 91 | + "ms-python.mypy-type-checker": true |
| 92 | + }, |
| 93 | + "cSpell.words": [ |
| 94 | + "endclass", |
| 95 | + "endfunction", |
| 96 | + "endinterface", |
| 97 | + "endmodule", |
| 98 | + "endtask", |
| 99 | + "ghdl", |
| 100 | + "iverilog", |
| 101 | + "posedge", |
| 102 | + "rstn", |
| 103 | + "verilator", |
| 104 | + "Verilog", |
| 105 | + "VHDL" |
| 106 | + ], |
| 107 | + // Language-specific settings |
| 108 | + "[markdown]": { |
| 109 | + "editor.wordWrap": "off" |
| 110 | + }, |
| 111 | + "[json]": { |
| 112 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 113 | + } |
5 | 114 | } |
0 commit comments