Skip to content

Commit

Permalink
Update vscode configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagusiak committed Aug 16, 2023
1 parent 3bb60d9 commit 1fa7ba5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 30 deletions.
9 changes: 4 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@
"editor.insertSpaces": true,
"editor.tabSize": 4
},
"python.formatting.blackArgs": [
"black-formatter.args": [
"--skip-string-normalization",
"--line-length",
"100"
],
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"python.terminal.activateEnvInCurrentTerminal": true,
// inherited
"python.autoComplete.extraPaths": [
Expand Down Expand Up @@ -63,6 +59,9 @@
"mrorz.language-gettext",
"redhat.vscode-xml",
"ms-python.python",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.isort",
"ms-python.vscode-pylance",
"mtxr.sqltools",
"mtxr.sqltools-driver-pg"
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/vscode.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
}
],
"settings": {
"python.linting.enabled": false,
"sqltools.connections": [
{
"name": "Container odoo",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
3 changes: 0 additions & 3 deletions .vscode/odoo.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"path": "../../odoo-addons"
}
],
"settings": {
"python.linting.enabled": false,
},
"launch": {
"configurations": [
{
Expand Down
26 changes: 6 additions & 20 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,14 @@
"editor.insertSpaces": true,
"editor.tabSize": 4
},
"python.formatting.blackArgs": [
"--skip-string-normalization",
"--line-length",
"100"
],
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.mypyEnabled": false,
"black-formatter.args": [
"--skip-string-normalization",
"--line-length",
"100"
],
"python.analysis.extraPaths": [
"../odoo",
"../odoo-addons",
"../odoo-addons/enterprise",
],
// inherited
"python.linting.ignorePatterns": [
"../odoo",
"../odoo-addons",
],
"python.linting.pylintArgs": [
//"--rcfile", "${workspaceFolder}/.vscode/oca_pylint.cfg",
"--load-plugins", "pylint_odoo"
],
]
}

0 comments on commit 1fa7ba5

Please sign in to comment.