Skip to content

Commit f2d768f

Browse files
VS Code devcontainer (#400)
* VS Code devcontainer * Modifica path para facilitar uso do pyxbgen
1 parent 7e60ce5 commit f2d768f

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM python:3.12
2+
3+
RUN echo 'export PATH="$HOME/.local/bin:$PATH"' >> /root/.bashrc

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "PyNFe",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"features": {
7+
"ghcr.io/devcontainers/features/python:1": {
8+
"version": "3.12",
9+
"installTools": true
10+
}
11+
},
12+
"workspaceFolder": "/workspaces/PyNFe/",
13+
"mounts": [
14+
"source=${env:HOME}/.ssh,target=/root/.ssh,type=bind"
15+
],
16+
"customizations": {
17+
"vscode": {
18+
"settings": {
19+
"python.defaultInterpreterPath": "/usr/local/bin/python",
20+
"python.languageServer": "Pylance",
21+
"editor.formatOnSave": true,
22+
"python.linting.enabled": true,
23+
"python.linting.linter": "ruff",
24+
"editor.codeActionsOnSave": {
25+
"source.fixAll": "explicit"
26+
}
27+
},
28+
"extensions": [
29+
"eamodio.gitlens",
30+
"ms-python.python",
31+
"ms-python.vscode-pylance",
32+
"charliermarsh.ruff"
33+
]
34+
}
35+
},
36+
"postCreateCommand": "pip install --user -r /workspaces/PyNFe/requirements.txt -r /workspaces/PyNFe/requirements-nfse.txt || true"
37+
}

0 commit comments

Comments
 (0)