Skip to content

Commit aa91cad

Browse files
committed
chore: Update dev-deps and add devcontainer
1 parent 24ebc2b commit aa91cad

4 files changed

Lines changed: 307 additions & 206 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
"image": "mcr.microsoft.com/devcontainers/python:1-3.9-bullseye",
6+
"features": {
7+
"ghcr.io/devcontainers-contrib/features/poetry:2": {
8+
"version": "latest"
9+
},
10+
"ghcr.io/dhoeric/features/google-cloud-cli:1": {}
11+
},
12+
"postCreateCommand": "poetry install",
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
// Python
17+
"ms-python.python",
18+
"ms-python.vscode-pylance",
19+
"ms-python.black-formatter",
20+
"ms-python.flake8",
21+
"matangover.mypy",
22+
"nwgh.bandit",
23+
"KevinRose.vsc-python-indent",
24+
// RestructuredText
25+
"lextudio.restructuredtext",
26+
"trond-snekvik.simple-rst",
27+
// Helpers
28+
"tamasfe.even-better-toml",
29+
"njpwerner.autodocstring",
30+
"aaron-bond.better-comments",
31+
// Tools
32+
"GitHub.copilot",
33+
"ms-toolsai.jupyter",
34+
// VIM
35+
"vscodevim.vim"
36+
]
37+
}
38+
}
39+
}

.vscode/settings.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33
"**/__pycache__": true
44
},
55
"editor.codeActionsOnSave": {
6-
"source.organizeImports": true
6+
"source.organizeImports": "explicit"
77
},
88
"python.testing.unittestEnabled": false,
9-
"python.testing.nosetestsEnabled": false,
109
"python.testing.pytestEnabled": true,
11-
"python.testing.pytestArgs": ["--no-cov"],
12-
"python.linting.enabled": true,
13-
"python.linting.pylintEnabled": false,
14-
"python.linting.banditEnabled": true,
15-
"python.linting.banditArgs": ["-r", "--ini .bandit"],
16-
"python.linting.flake8Enabled": true,
17-
"python.linting.flake8CategorySeverity.E": "Warning",
18-
"python.linting.mypyEnabled": true,
19-
"python.formatting.provider": "black",
10+
"python.testing.pytestArgs": [
11+
"--no-cov"
12+
],
2013
"editor.formatOnSave": true,
21-
"restructuredtext.confPath": "${workspaceFolder}/docs",
2214
"cSpell.words": [
2315
"Vlan",
2416
"etree",
@@ -27,5 +19,12 @@
2719
"pandevice",
2820
"pan-os-python",
2921
"refreshall"
30-
]
31-
}
22+
],
23+
"black-formatter.importStrategy": "fromEnvironment",
24+
"bandit.importStrategy": "fromEnvironment",
25+
"bandit.args": [
26+
"-r",
27+
"--ini .bandit"
28+
],
29+
"flake8.importStrategy": "fromEnvironment"
30+
}

0 commit comments

Comments
 (0)