-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 516feaa
Showing
60 changed files
with
5,497 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/docker-existing-docker-compose | ||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml. | ||
{ | ||
"name": "PBG-devcontainer", | ||
|
||
// Update the 'dockerComposeFile' list if you have more compose files or use different names. | ||
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. | ||
"dockerComposeFile": [ | ||
"docker-compose.yml" | ||
], | ||
|
||
// The 'service' property is the name of the service for the container that VS Code should | ||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. | ||
"service": "develop", | ||
|
||
// The optional 'workspaceFolder' property is the path VS Code should open by default when | ||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml | ||
"workspaceFolder": "/workspace", | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"customizations": | ||
{ | ||
"vscode":{ | ||
"settings": { | ||
"python.pythonPath": "${workspaceFolder}/.venv/bin/python", | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.mypyEnabled": false, | ||
"python.linting.enabled": true, | ||
"python.testing.pytestArgs": ["test"], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"editor.formatOnSave": true, | ||
"files.autoSave": "afterDelay", | ||
"python.formatting.provider": "black", | ||
"autoDocstring.customTemplatePath": ".vscode/google_no_types.mustache", | ||
"window.title": "${rootName} ${separator} ${activeEditorShort}", | ||
"[python]": { | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4 | ||
}, | ||
"files.exclude": { | ||
"**/__pycache__": true | ||
} | ||
}, | ||
"extensions": [ | ||
"alefragnani.bookmarks", | ||
"streetsidesoftware.code-spell-checker", | ||
"ms-azuretools.vscode-docker", | ||
"docsmsft.docs-markdown", | ||
"docsmsft.docs-preview", | ||
"docsmsft.docs-yaml", | ||
"mikestead.dotenv", | ||
"sleistner.vscode-fileutils", | ||
"mhutchie.git-graph", | ||
"donjayamanne.githistory", | ||
"github.codespaces", | ||
"github.copilot", | ||
"github.remotehub", | ||
"eamodio.gitlens", | ||
"oderwat.indent-rainbow", | ||
"streetsidesoftware.code-spell-checker-italian", | ||
"ms-toolsai.jupyter", | ||
"ms-toolsai.jupyter-keymap", | ||
"ms-vsliveshare.vsliveshare", | ||
"yzhang.markdown-all-in-one", | ||
"pkief.material-icon-theme", | ||
"s3gf4ult.monokai-vibrant", | ||
"pnp.polacode", | ||
"ms-ossdata.vscode-postgresql", | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"njpwerner.autodocstring", | ||
"kevinrose.vsc-python-indent", | ||
"mechatroner.rainbow-csv", | ||
"ms-vscode-remote.remote-containers", | ||
"ms-vscode-remote.remote-ssh", | ||
"ms-vscode-remote.remote-ssh-edit", | ||
"ms-vscode-remote.remote-wsl", | ||
"ms-vscode-remote.vscode-remote-extensionpack", | ||
"liveecommerce.vscode-remote-workspace", | ||
"medo64.render-crlf", | ||
"stkb.rewrap", | ||
"mtxr.sqltools-driver-pg", | ||
"mtxr.sqltools-driver-sqlite", | ||
"arjun.swagger-viewer", | ||
"wayou.vscode-todo-highlight", | ||
"gruntfuggly.todo-tree", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"webhint.vscode-webhint", | ||
"redhat.vscode-yaml", | ||
"charliermarsh.ruff" | ||
] | ||
} | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
|
||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [8042] | ||
|
||
// Uncomment the next line if you want start specific services in your Docker Compose config. | ||
// "runServices": [], | ||
|
||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. | ||
// "shutdownAction": "none", | ||
|
||
// Uncomment the next line to run commands after the container is created - for example installing curl. | ||
// "postCreateCommand": "apt-get update && apt-get install -y curl", | ||
|
||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root. | ||
// "remoteUser": "vscode" | ||
} |
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,13 @@ | ||
version: '3.8' | ||
services: | ||
develop: | ||
platform: linux/amd64 | ||
build: | ||
dockerfile: ./Docker/dev.dockerfile | ||
context: ../ | ||
restart: always | ||
environment: | ||
LOG_VERBOSITY: ${LOG_VERBOSITY:-DEBUG} | ||
volumes: | ||
- ..:/workspace:cached | ||
command: /bin/sh -c "while sleep 1000; do :; done" |
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,14 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = .venv, docs, .vscode, pychache, .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache, alembic | ||
ignore = E501, W503, E226, E203, W503, W293, I004, E266, W391, W292, I001, S101, I003, I005, A002, A003, S608, W605, S303, B303 | ||
# E501: Line too long | ||
# W503: Line break occurred before binary operator | ||
# E226: Missing white space around arithmetic operator | ||
# I001: Import wrong positions | ||
|
||
[mypy] | ||
plugins = pydantic.mypy, sqlmypy | ||
ignore_missing_imports = True | ||
disallow_untyped_defs = True | ||
exclude = ['volumes/*'] |
Empty file.
Empty file.
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,38 @@ | ||
# Description | ||
|
||
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
|
||
Fixes # (issue) | ||
|
||
## Type of change | ||
|
||
Please delete options that are not relevant. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
# How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration | ||
|
||
- [ ] Test A | ||
- [ ] Test B | ||
|
||
**Test Configuration**: | ||
* Firmware version: | ||
* Hardware: | ||
* Toolchain: | ||
* SDK: | ||
|
||
# Checklist: | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have been merged and published in downstream modules |
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,49 @@ | ||
# documentation | ||
#https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# name: Create and publish a Docker image | ||
|
||
# on: | ||
# push: | ||
# branches: ['release'] | ||
|
||
# env: | ||
# REGISTRY: ghcr.io | ||
# IMAGE_NAME: ${{ github.repository }} | ||
|
||
# jobs: | ||
# build-and-push-image: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# packages: write | ||
|
||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Log in to the Container registry | ||
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
# with: | ||
# registry: ${{ env.REGISTRY }} | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Extract metadata (tags, labels) for Docker | ||
# id: meta | ||
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
# with: | ||
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
# - name: Build and push Docker image | ||
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
# with: | ||
# context: . | ||
# push: true | ||
# tags: ${{ steps.meta.outputs.tags }} | ||
# labels: ${{ steps.meta.outputs.labels }} |
Oops, something went wrong.