Skip to content

Commit

Permalink
fix config issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoik committed Jan 3, 2024
1 parent 48614fc commit c90fd87
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
10 changes: 7 additions & 3 deletions 1wire/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dockerComposeFile": [
"../../docker-compose.yml",
"../../docker-compose.dev.yml",
"../../docker-compose.devcontainer.yml",
"../../docker-compose.devcontainer.yml"
],

//"remoteUser": "fd",
Expand All @@ -17,8 +17,12 @@
// Otherwise do not need workspaceMount
"workspaceMount": "source=/home/ubuntu/farm_device,target=/workspaces,type=bind,consistency=cached",
"workspaceFolder": "/workspaces",
"shutdownAction": "none",
"shutdownAction": "none"
// "customizations": {
// "vscode": {
// "extensions": []
// }
// }

"extensions": [],
// "postCreateCommand": "git config --global core.autocrlf true && git config --global user.email 'nelsonstoik@gmail.com' && git config --global user.name 'Nelson'",
}
38 changes: 21 additions & 17 deletions device/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dockerComposeFile": [
"../../docker-compose.yml",
"../../docker-compose.dev.yml",
"../../docker-compose.devcontainer.yml",
"../../docker-compose.devcontainer.yml"
],

"remoteUser": "fd",
Expand All @@ -19,21 +19,25 @@
"workspaceFolder": "/workspaces",
"shutdownAction": "none",

"extensions": [
"ms-python.python",
"eamodio.gitlens",
"ms-python.vscode-pylance",
"github.copilot",
],
"postCreateCommand": "git config --global core.autocrlf true && git config --global user.email 'nelsonstoik@gmail.com' && git config --global user.name 'Nelson'",
"settings": {
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": ["--load-plugins",],
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--config=/workspaces/device/setup.cfg"],
"python.linting.mypyEnabled": true,
"python.linting.mypyArgs": ["--config=/workspaces/device/setup.cfg"],
"python.formatting.provider": "black"
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"eamodio.gitlens",
"ms-python.vscode-pylance",
"github.copilot"
],
"postCreateCommand": "git config --global core.autocrlf true && git config --global user.email 'nelsonstoik@gmail.com' && git config --global user.name 'Nelson'",
"settings": {
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": ["--load-plugins"],
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": ["--config=/workspaces/device/setup.cfg"],
"python.linting.mypyEnabled": true,
"python.linting.mypyArgs": ["--config=/workspaces/device/setup.cfg"],
"python.formatting.provider": "black"
}
}
}
}
7 changes: 6 additions & 1 deletion device/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

## Vscode Dev Container

Run ```pipenv install --dev``` inside the container after setting it up
Run ```pipenv install --dev``` inside the container after setting it up

```bash
cd device
pipenv install --dev
```

0 comments on commit c90fd87

Please sign in to comment.