-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from EnergieID/develop
0.1.20: Dyntar Fixes
- Loading branch information
Showing
12 changed files
with
43,181 additions
and
42,850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,39 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "Python 3", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers/features/python:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/ruff:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pip3 install -r requirements.txt && pip3 install -r requirements-dev.txt", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root", | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-toolsai.jupyter", | ||
"charliermarsh.ruff", | ||
"ms-python.pylint", | ||
"ms-python.vscode-pylance", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"esbenp.prettier-vscode", | ||
"GitHub.vscode-pull-request-github" | ||
], | ||
"settings": { | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.testing.pytestArgs": ["--no-cov"], | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true, | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"[python]": { | ||
"editor.defaultFormatter": "charliermarsh.ruff" | ||
} | ||
} | ||
} | ||
} | ||
"name": "Python 3", | ||
"image": "mcr.microsoft.com/devcontainers/python:1.1.9-3.11-bookworm", | ||
"features": {}, | ||
"postCreateCommand": "zsh -l .devcontainer/post-install.sh", | ||
// "postStartCommand": "", | ||
"remoteUser": "root", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-toolsai.jupyter", | ||
"charliermarsh.ruff", | ||
"ms-python.pylint", | ||
"ms-python.vscode-pylance", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"esbenp.prettier-vscode", | ||
"GitHub.vscode-pull-request-github", | ||
"mhutchie.git-graph" | ||
], | ||
"settings": { | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.testing.pytestArgs": ["--no-cov"], | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true, | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"[python]": { | ||
"editor.defaultFormatter": "charliermarsh.ruff" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/zsh -l | ||
# Add the current directory to Git's safe directory list | ||
git config --global --add safe.directory /workspaces/OpenEnergyID | ||
|
||
# Install Python tools | ||
pipx install ruff poetry pre-commit | ||
|
||
# Install project dependencies using Poetry | ||
poetry install | ||
|
||
# Install pre-commit hooks | ||
pre-commit install | ||
|
||
# Install Node.js and Pure prompt | ||
# nvm install node | ||
# npm install --global pure-prompt | ||
|
||
# # Configure Zsh to use Pure prompt | ||
# "autoload -U promptinit; promptinit; prompt pure" | ||
# "echo "autoload -U promptinit; promptinit; prompt pure" >> ~/.zshrc" | ||
|
||
# # Uncomment the following line to install zsh-syntax-highlighting | ||
# # sudo apt-get install zsh-syntax-highlighting | ||
# # echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.