| 1 |
{ |
| 2 |
//-- Editor settings for all files ------------------------------------------------- |
| 3 |
// |
| 4 |
"editor.formatOnSave": false, // Using this for reducing git changes between commits |
| 5 |
"editor.formatOnPaste": false, |
| 6 |
"editor.formatOnType": true, |
| 7 |
"editor.tabSize": 4, |
| 8 |
"editor.wordWrapColumn": 88, |
| 9 |
"files.eol": "\n", |
| 10 |
"files.encoding": "utf8", |
| 11 |
"notebook.formatOnSave.enabled": false, |
| 12 |
// |
| 13 |
//-- Editor visual settings -------------------------------------------------------- |
| 14 |
// |
| 15 |
"editor.fontLigatures": "'liga', 'calt', 'dlig', 'THND'", |
| 16 |
"editor.renderWhitespace": "boundary", |
| 17 |
"editor.guides.bracketPairs": true, |
| 18 |
"editor.folding": true, |
| 19 |
"editor.foldingStrategy": "auto", |
| 20 |
"editor.showFoldingControls": "always", |
| 21 |
"editor.rulers": [ |
| 22 |
88, |
| 23 |
100, |
| 24 |
120 |
| 25 |
], |
| 26 |
// |
| 27 |
//-- Editor settings for search/view files ----------------------------------------- |
| 28 |
// |
| 29 |
"files.exclude": { |
| 30 |
// python |
| 31 |
"**/.tox": true, |
| 32 |
"**/.nox": true, |
| 33 |
"**/.eggs": true, |
| 34 |
"**/*.egg-info": true, |
| 35 |
"**/__pycache__": true, |
| 36 |
"**/__pypackages__": true, |
| 37 |
"**/.pylint.d": true, |
| 38 |
"**/.cache": true, |
| 39 |
"**/.mypy_cache": true, |
| 40 |
"**/.pytest_cache": true, |
| 41 |
"**/.ruff_cache": true, |
| 42 |
"**/.ipynb_checkpoints": true, |
| 43 |
"**/*.pyc": true, |
| 44 |
"**/*.egg": true, |
| 45 |
"**/*.pyenv": true, |
| 46 |
"**/*.pytype": true, |
| 47 |
"**/.vscode-server": true, |
| 48 |
}, |
| 49 |
"files.watcherExclude": { |
| 50 |
// git |
| 51 |
"**/.git/objects/**": true, |
| 52 |
"**/.git/subtree-cache/**": true, |
| 53 |
// python |
| 54 |
"**/.tox": true, |
| 55 |
"**/.nox": true, |
| 56 |
"**/.eggs": true, |
| 57 |
"**/*.egg-info": true, |
| 58 |
"**/__pycache__": true, |
| 59 |
"**/__pypackages__": true, |
| 60 |
"**/.cache": true, |
| 61 |
"**/.mypy_cache": true, |
| 62 |
"**/.pytest_cache": true, |
| 63 |
"**/.ruff_cache": true, |
| 64 |
"**/.ipynb_checkpoints": true, |
| 65 |
"**/*.pyc": true, |
| 66 |
"**/*.egg": true, |
| 67 |
"**/*.venv": true, |
| 68 |
"**/*.pyenv": true, |
| 69 |
"**/*.pytype": true, |
| 70 |
"**/_build": true, |
| 71 |
"**/build": true, |
| 72 |
"**/dist": true, |
| 73 |
"**/site-packages": true, |
| 74 |
// others |
| 75 |
"**/logs": true, |
| 76 |
"**/*.log": true, |
| 77 |
"**/.vscode-server": true, |
| 78 |
"**/example.*": true, |
| 79 |
}, |
| 80 |
"search.exclude": { |
| 81 |
// git |
| 82 |
"**/.git/objects/**": true, |
| 83 |
"**/.git/subtree-cache/**": true, |
| 84 |
// python |
| 85 |
"**/.tox": true, |
| 86 |
"**/.nox": true, |
| 87 |
"**/.eggs": true, |
| 88 |
"**/*.egg-info": true, |
| 89 |
"**/__pycache__": true, |
| 90 |
"**/__pypackages__": true, |
| 91 |
"**/.cache": true, |
| 92 |
"**/.mypy_cache": true, |
| 93 |
"**/.pytest_cache": true, |
| 94 |
"**/.ruff_cache": true, |
| 95 |
"**/.ipynb_checkpoints": true, |
| 96 |
"**/*.pyc": true, |
| 97 |
"**/*.egg": true, |
| 98 |
"**/*.venv": true, |
| 99 |
"**/*.pyenv": true, |
| 100 |
"**/*.pytype": true, |
| 101 |
"**/_build": true, |
| 102 |
"**/build": true, |
| 103 |
"**/dist": true, |
| 104 |
"**/site-packages": true, |
| 105 |
// others |
| 106 |
"**/*.log": true, |
| 107 |
"**/logs": true, |
| 108 |
"**/.vscode-server": true, |
| 109 |
"**/example.*": true, |
| 110 |
}, |
| 111 |
// |
| 112 |
//-- Python language settings ------------------------------------------------------ |
| 113 |
// |
| 114 |
"[python]": { |
| 115 |
// Editor settings for python files |
| 116 |
"editor.formatOnSave": false, // Using this for reducing git changes between commits |
| 117 |
"editor.tabSize": 4, |
| 118 |
"editor.wordWrapColumn": 88, |
| 119 |
"files.eol": "\n", |
| 120 |
"files.encoding": "utf8", |
| 121 |
"editor.defaultFormatter": "charliermarsh.ruff", |
| 122 |
"editor.insertSpaces": true, |
| 123 |
"files.insertFinalNewline": true, |
| 124 |
//-- Settings to reduce git changes due to whitespaces up source code (disabled for now) |
| 125 |
// "editor.trimAutoWhitespace": true, |
| 126 |
// "files.trimFinalNewlines": true, |
| 127 |
// "files.trimTrailingWhitespace": true, |
| 128 |
}, |
| 129 |
"python.autoComplete.extraPaths": [ |
| 130 |
"${workspaceFolder}/petl/", |
| 131 |
"${workspaceFolder}/petl/io/", |
| 132 |
"${workspaceFolder}/petl/transform/", |
| 133 |
"${workspaceFolder}/petl/util/", |
| 134 |
"${workspaceFolder}/petl/test/", |
| 135 |
"${workspaceFolder}/petl/test/io", |
| 136 |
], |
| 137 |
// |
| 138 |
//-- Python analysis/tools settings ------------------------------------------------ |
| 139 |
// |
| 140 |
"python.analysis.logLevel": "Warning", |
| 141 |
"pylint.ignorePatterns": [ |
| 142 |
".vscode/*.py", |
| 143 |
".git", |
| 144 |
".tox", |
| 145 |
".nox", |
| 146 |
".venv", |
| 147 |
".eggs", |
| 148 |
".egg-info", |
| 149 |
".cache", |
| 150 |
".mypy_cache", |
| 151 |
".pytest_cache", |
| 152 |
"__pycache__", |
| 153 |
"_build", |
| 154 |
"*.pyc", |
| 155 |
".vscode", |
| 156 |
".vscode-server", |
| 157 |
], |
| 158 |
"pylint.args": [ |
| 159 |
"--max-line-length=88", |
| 160 |
"--reports=y", |
| 161 |
"--disable=import-error,invalid-name,bad-continuation,import-outside-toplevel,missing-module-docstring,missing-function-docstring,trailing-whitespace,line-too-long,bad-whitespace" |
| 162 |
], |
| 163 |
"flake8.args": [ |
| 164 |
"--max-line-length", |
| 165 |
"88", |
| 166 |
"--max-complexity", |
| 167 |
"10", |
| 168 |
"--extend-ignore", |
| 169 |
"E201,E202,E203,E501,W503,W291", |
| 170 |
"--exclude", |
| 171 |
".git,.tox,.venv,.eggs,.egg-info,.cache,.mypy_cache,.pytest_cache,.vscode,__pycache__,_build,*.pyc,.vscode-server" |
| 172 |
], |
| 173 |
"mypy-type-checker.args": [ |
| 174 |
"--allow-untyped-defs", |
| 175 |
"--allow-untyped-calls", |
| 176 |
"--allow-untyped-globals", |
| 177 |
// "--ignore-missing-imports", |
| 178 |
// "--follow-imports", |
| 179 |
// "silent", |
| 180 |
], |
| 181 |
"python.testing.unittestEnabled": false, |
| 182 |
"python.testing.pytestEnabled": true, |
| 183 |
"python.testing.pytestPath": "petl/test/", |
| 184 |
"testing.showCoverageInExplorer": true, |
| 185 |
"testing.gutterEnabled": true, |
| 186 |
"python.analysis.extraPaths": [ |
| 187 |
"${workspaceFolder}/petl/", |
| 188 |
"${workspaceFolder}/petl/io/", |
| 189 |
"${workspaceFolder}/petl/transform/", |
| 190 |
"${workspaceFolder}/petl/util/", |
| 191 |
"${workspaceFolder}/petl/test/", |
| 192 |
"${workspaceFolder}/petl/test/io" |
| 193 |
], |
| 194 |
"bandit.args": [ |
| 195 |
"--configfile", |
| 196 |
"${workspaceFolder}/pyproject.toml" |
| 197 |
] |
| 198 |
} |