Skip to content

Commit

Permalink
Updates for S2I
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Nov 4, 2023
1 parent 788aa7f commit de94f2b
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 21 deletions.
72 changes: 51 additions & 21 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,56 @@
"service": "app",
"workspaceFolder": "/app",
"remoteUser": "devops",
"extensions": [
"VisualStudioExptTeam.vscodeintellicode",
"ms-python.python",
"ms-python.vscode-pylance",
"alexkrechik.cucumberautocomplete",
"cstrap.flask-snippets",
"yzhang.markdown-all-in-one",
"bierner.github-markdown-preview",
"hnw.vscode-auto-open-markdown-preview",
"DavidAnson.vscode-markdownlint",
"donjayamanne.githistory",
"GitHub.vscode-pull-request-github",
"hbenl.vscode-test-explorer",
"LittleFoxTeam.vscode-python-test-adapter",
"njpwerner.autodocstring",
"redhat.vscode-yaml",
"rangav.vscode-thunder-client",
"streetsidesoftware.code-spell-checker",
"wholroyd.jinja",
"bbenoist.vagrant"
],

"customizations": {
"vscode": {
"settings": {
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"markdown-preview-github-styles.colorTheme": "light",
"makefile.extensionOutputFolder": "/tmp",
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.pyc": true,
"**/__pycache__": true,
"**/.pytest_cache": true
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.pylint",
"ms-python.flake8",
"ms-python.black-formatter",
"njpwerner.autodocstring",
"wholroyd.jinja",
"ms-vscode.makefile-tools",
"tamasfe.even-better-toml",
"yzhang.markdown-all-in-one",
"hnw.vscode-auto-open-markdown-preview",
"bierner.markdown-preview-github-styles",
"davidanson.vscode-markdownlint",
"donjayamanne.githistory",
"GitHub.vscode-pull-request-github",
"hbenl.vscode-test-explorer",
"LittleFoxTeam.vscode-python-test-adapter",
"redhat.vscode-yaml",
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"inercia.vscode-k3d",
"rangav.vscode-thunder-client",
"bbenoist.vagrant",
"streetsidesoftware.code-spell-checker"
]
}
},
"postCreateCommand": "sudo pip install -r requirements.txt"
}
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[tool.poetry]
name = "lab-flask-rest"
version = "0.1.0"
description = "REST API with Flask Lab"
authors = ["Your Name <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
Flask = "^2.1.2"
redis = "^4.5.3"
python-dotenv = "^1.0.0"
gunicorn = "^20.1.0"
honcho = "^1.1.0"

[tool.poetry.group.dev.dependencies]
pylint = "^3.0.2"
flake8 = "^6.1.0"
black = "^23.10.1"
pytest = "^7.4.3"
pytest-pspec = "^0.0.4"
pytest-cov = "^4.1.0"
factory-boy = "^3.3.0"
coverage = "^7.3.2"
green = "^3.4.3"
httpie = "^3.2.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit de94f2b

Please sign in to comment.