Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

added working stuff #18

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

{
"name": "Pythondev",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/sync",

"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.testing.pytestPath": "/usr/local/py-utils/bin/pytest",
"editor.minimap.enabled": false,
"workbench.editor.closeOnFileDelete": true,
"editor.wordWrap": "on"
},

// Add the IDs of extensions you want installed when the container is created.
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"Gruntfuggly.todo-tree",
"ms-python.python",
"actboy168.tasks",
"dchanco.vsc-invoke",
"donjayamanne.githistory",
"alefragnani.Bookmarks",
"ZhouSir.visual-snake-code",
"littlefoxteam.vscode-python-test-adapter",
"njpwerner.autodocstring",
"esbenp.prettier-vscode",
"Gerrnperl.outline-map",
"hbenl.vscode-test-explorer",
"k--kato.intellij-idea-keybindings",
"GrapeCity.gc-excelviewer",
"dbaeumer.vscode-eslint",
"cschleiden.vscode-github-actions",
"ms-python.vscode-pylance",
"ms-python.debugpy",
"ms-vscode.test-adapter-converter",
"amodio.tsl-problem-matcher",
"christian-kohler.npm-intellisense",
"spmeesseman.vscode-taskexplorer",
"mariospapa.vscode-npm-explorer",
"lucono.karma-test-explorer",
"romanresh.testcafe-test-runner",
"ms-vscode.vscode-typescript-next",
"Vue.volar"
]
}
},
"features": {

}
}

21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
import os,sys

try:
import funbelts as ut
except:
os.system(str(sys.executable) + " -m pip install --upgrade funbelts")
import funbelts as ut

def run(package):
cmd = "code-server --install-extension " + str(package)
print(cmd)
try:
os.system(cmd)
except Exception as e:
print(e)

devcontainer = os.path.join(os.path.dirname(__file__), 'devcontainer.json')
for extension in ut.cmt_json(devcontainer)['customizations']['vscode']['extensions']:
run(extension)

10 changes: 10 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.8'

services:
app:
image: frantzme/pythondev:lite

volumes:
- ..:/sync:cached

command: sh -c "chmod 777 .devcontainer/vs_startup.sh && ./.devcontainer/vs_startup.sh && sleep infinity"
2 changes: 2 additions & 0 deletions .devcontainer/vs_startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist
package-lock.json
out
node_modules
.vscode-test/
Expand Down
76 changes: 71 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,77 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
"out": true, // set this to false to include "out" folder in search results
"dist": true // set this to false to include "dist" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
"typescript.tsc.autoDetect": "off",
"python.testing.pytestArgs": ["src/test/python_tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.cwd": "${workspaceFolder}",
"python.analysis.extraPaths": ["bundled/libs"],
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"files.exclude":{
"out": false, // set this to true to hide the "out" folder with the compiled JS files
"dist": false, // set this to true to hide the "dist" folder with the compiled JS files
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/.idea":true,
"**/__pycache__":true,
"**/.devcontainer":true,
"**/.github":true,
//"**/.vscode":true,
"**/.eslintrc.json":true,
"**/.gitignore":true,
"**/.prettierrc.js":true,
"**/.vscodeignore":true,
"**/CHANGELOG.md":true,
"**/CODE_OF_CONDUCT.md":true,
"**/LICENSE":true,
"**/package-lock.json":true,
"**/SECURITY.md":true,
"**/SUPPORT.md":true,
"**/tsconfig.json":true,
"**/webpack.config.js":true,
//"**/src":true,
"**/requirements.txt":true,
"**/node_modules":true,
"**/.nox":true,
"**/bundled/libs/":true,
"**/dist/":true,
"**/appmap.yml":true,
"kubectl*":true,
"postman.json":true,
"*.png":true,
"README.md":true,
"issue_template.md":true,
"pull_request_template.md":true,
"coverconfig.json":true,
"**/tslint.json":true,
"runtime.txt":true,
"requirements.in":true,
"noxfile.py":true,
".pytest_cache/":true,
"openapi.json":true,
"**/.vscode":true,
"**/.devcontainer":true,
"**/etc/":true,
"**/out/":true,
"ssh/":true,
"test.sqlite*":true,
"bundled/tool/pysrc":true,
"*.csv":true,
"docs/":true,
"gradle/":true,
"gradlew":true,
"gradlew.bat":true
}
}
Loading
Loading