From a73ad875d0f8979ace400bd981f9f79b43d47170 Mon Sep 17 00:00:00 2001 From: Lokoak47 Date: Wed, 5 Nov 2025 17:44:07 +0000 Subject: [PATCH 1/5] Adds VS Code workspace configs for debugging and testing Introduces editor settings, launch, and task configurations to streamline debugging, unit testing, and build processes for multiple environments. Enhances developer productivity by standardizing workspace behavior and tool integration. --- .vscode/launch.json | 134 ++++++++++++++++++++++++++++++++++++++++++ .vscode/settings.json | 13 ++++ .vscode/tasks.json | 26 ++++++++ 3 files changed, 173 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..2fcd5f29c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,134 @@ +{ + // Use IntelliSense para saber los atributos posibles. + // Mantenga el puntero para ver las descripciones de los existentes atributos. + // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "args": [ + "generator" + ], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "name": "Yeoman generator", + "program": "${workspaceFolder}/node_modules/yo/lib/cli.js", + "request": "launch", + "skipFiles": [ + "/**" + ], + "type": "node" + }, + { + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "name": "Extensión de inicio", + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm", + "request": "launch", + "type": "extensionHost" + },{ + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "name": "Extensión de inicio", + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm", + "request": "launch", + "type": "extensionHost" + }, + { + "name": "Attach by Process ID", + "processId": "${command:PickProcess}", + "request": "attach", + "skipFiles": [ + "/**" + ], + "type": "node" + }, + { + "name": "Launch Chrome", + "request": "launch", + "type": "chrome", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + }, + { + "command": "npm start", + "name": "Run npm start", + "request": "launch", + "type": "node-terminal" + }, + { + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}" + ], + "name": "Extensión de inicio", + "outFiles": [ + "${workspaceFolder}/out/**/*.js" + ], + "preLaunchTask": "npm", + "request": "launch", + "type": "extensionHost" + }, + { + "command": "npm start","serverReadyAction{ + "action": "startDebugging", + "config": { + "type": "node", + "request": "launch" + }, + "killOnServerStop": false + }, + "name": "Run npm start", + "request": "launch", + "type": "node-terminal" + }, + { + "name": "Attach to Chrome", + "port": 9222, + "request": "attach", + "type": "chrome", + "webRoot": "${workspaceFolder}" + }, + { + "name": "Launch Chrome", + "request": "launch", + "type": "chrome", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + }, + { + "type": "chrome", + "request": "launch", + "name": "Iniciar Chrome para localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + }, + { + "name": "Launch via NPM", + "request": "launch", + "runtimeArgs": [ + "run-script", + "debug" + ], + "runtimeExecutable": "npm", + "skipFiles": [ + "/**" + ], + "type": "node" + } + ] +} ], + "runtimeExecutable": "npm", + "skipFile + "/**" + ], + "type": "node" + } ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..422a254e1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + "python-envs.defaultEnvManager": "ms-python.python:system", + "python-envs.pythonProjects": [], + "python.testing.unittestArgs": [ + "-v", + "-s", + "./docs", + "-p", + "*test*.py" + ], + "python.testing.pytestEnabled": false, + "python.testing.unittestEnabled": true +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..f97e9e6b2 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "msbuild", + "args": [ + // Ask msbuild to generate full paths for file names. + "/property:GenerateFullPaths=true", + "/t:build", + // Do not generate summary otherwise it leads to duplicate errors in Problems panel + "/consoleloggerparameters:NoSummary" + ], + "group": "build", + "presentation": { + // Reveal the output only if unrecognized errors occur. + "reveal": "silent" + }, + // Use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file From 13976d9f9faafab202a3df6266d472b7759248dc Mon Sep 17 00:00:00 2001 From: Lokoak47 Date: Sun, 9 Nov 2025 18:19:20 +0000 Subject: [PATCH 2/5] =?UTF-8?q?Corrige=20la=20descripci=C3=B3n=20de=20PyTo?= =?UTF-8?q?rch=20en=20el=20README.md=20para=20eliminar=20la=20referencia?= =?UTF-8?q?=20a=20Theano=20y=20mejorar=20la=20claridad.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93d20bb17..5a032039e 100644 --- a/README.md +++ b/README.md @@ -426,7 +426,7 @@ Inspired by [awesome-php](https://github.com/ziadoz/awesome-php). *Frameworks for Neural Networks and Deep Learning. Also see [awesome-deep-learning](https://github.com/ChristosChristofidis/awesome-deep-learning).* * [keras](https://github.com/keras-team/keras) - A high-level neural networks library and capable of running on top of either TensorFlow or Theano. -* [pytorch](https://github.com/pytorch/pytorch) - Tensors and Dynamic neural networks in Python with strong GPU acceleration. +* [pytorch](https://github.com/pytorch/pytorch) - Tensors and Dynamic neural networks in Python with strong acceleration. * [pytorch-lightning](https://github.com/Lightning-AI/pytorch-lightning) - Deep learning framework to train, deploy, and ship AI products Lightning fast. * [stable-baselines3](https://github.com/DLR-RM/stable-baselines3) - PyTorch implementations of Stable Baselines (deep) reinforcement learning algorithms. * [tensorflow](https://github.com/tensorflow/tensorflow) - The most popular Deep Learning framework created by Google. From 8043db4868bfade9a8ac1767c0fd509d10df9313 Mon Sep 17 00:00:00 2001 From: Lokoak47 Date: Sun, 9 Nov 2025 18:27:39 +0000 Subject: [PATCH 3/5] =?UTF-8?q?Corrige=20la=20descripci=C3=B3n=20de=20Dear?= =?UTF-8?q?PyGui=20en=20el=20README.md=20para=20eliminar=20la=20referencia?= =?UTF-8?q?=20a=20GPU=20y=20mejorar=20la=20claridad.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a032039e..f5a64489e 100644 --- a/README.md +++ b/README.md @@ -569,7 +569,7 @@ Inspired by [awesome-php](https://github.com/ziadoz/awesome-php). * [Toga](https://github.com/pybee/toga) - A Python native, OS native GUI toolkit. * [urwid](http://urwid.org/) - A library for creating terminal GUI applications with strong support for widgets, events, rich colors, etc. * [wxPython](https://wxpython.org/) - A blending of the wxWidgets C++ class library with the Python. -* [DearPyGui](https://github.com/RaylockLLC/DearPyGui/) - A Simple GPU accelerated Python GUI framework +* [DearPyGui](https://github.com/RaylockLLC/DearPyGui/) - A Simple accelerated Python GUI framework ## GraphQL From ef1a7dd5830f12c0615e465d4850116e6721dd83 Mon Sep 17 00:00:00 2001 From: Lokoak47 Date: Sun, 9 Nov 2025 15:29:33 -0300 Subject: [PATCH 4/5] Add GitHub Actions workflow for Azure Functions deployment --- .../workflows/azure-functions-app-python.yml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/azure-functions-app-python.yml diff --git a/.github/workflows/azure-functions-app-python.yml b/.github/workflows/azure-functions-app-python.yml new file mode 100644 index 000000000..c52b30464 --- /dev/null +++ b/.github/workflows/azure-functions-app-python.yml @@ -0,0 +1,65 @@ +# This workflow will build a Python app and deploy it to an Azure Functions App on Linux when a commit is pushed to your default branch. +# +# This workflow assumes you have already created the target Azure Functions app. +# For instructions see https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-configuration +# +# To configure this workflow: +# 1. Set up the following secrets in your repository: +# - AZURE_FUNCTIONAPP_PUBLISH_PROFILE +# 2. Change env variables for your configuration. +# +# For more information on: +# - GitHub Actions for Azure: https://github.com/Azure/Actions +# - Azure Functions Action: https://github.com/Azure/functions-action +# - Publish Profile: https://github.com/Azure/functions-action#using-publish-profile-as-deployment-credential-recommended +# - Azure Service Principal for RBAC: https://github.com/Azure/functions-action#using-azure-service-principal-for-rbac-as-deployment-credential +# +# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples/tree/master/FunctionApp + +name: Deploy Python project to Azure Function App + +on: + push: + branches: ["master"] + +env: + AZURE_FUNCTIONAPP_NAME: 'your-app-name' # set this to your function app name on Azure + AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your function app project, defaults to the repository root + PYTHON_VERSION: '3.9' # set this to the python version to use (e.g. '3.6', '3.7', '3.8') + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + environment: dev + steps: + - name: 'Checkout GitHub Action' + uses: actions/checkout@v4 + + # If you want to use Azure RBAC instead of Publish Profile, then uncomment the task below + # - name: 'Login via Azure CLI' + # uses: azure/login@v1 + # with: + # creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }} # set up AZURE_RBAC_CREDENTIALS secrets in your repository + + - name: Setup Python ${{ env.PYTHON_VERSION }} Environment + uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: 'Resolve Project Dependencies Using Pip' + shell: bash + run: | + pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}' + python -m pip install --upgrade pip + pip install -r requirements.txt --target=".python_packages/lib/site-packages" + popd + + - name: 'Run Azure Functions Action' + uses: Azure/functions-action@v1 + id: fa + with: + app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} + package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} + publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC + scm-do-build-during-deployment: true + enable-oryx-build: true From 7d622201e0213faefcb5637fae09e5fd536e842f Mon Sep 17 00:00:00 2001 From: Lokoak47 Date: Sun, 9 Nov 2025 15:37:29 -0300 Subject: [PATCH 5/5] confirma --- .vscode/launch.json | 4 ++++ .vscode/settings.json | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2fcd5f29c..494373471 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,10 @@ // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + {}, + + + { "args": [ diff --git a/.vscode/settings.json b/.vscode/settings.json index 422a254e1..71e18b238 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,5 +9,8 @@ "*test*.py" ], "python.testing.pytestEnabled": false, - "python.testing.unittestEnabled": true + "python.testing.unittestEnabled": true, + "githubPullRequests.ignoredPullRequestBranches": [ + "master" + ] } \ No newline at end of file