Skip to content

Commit de94f2b

Browse files
committed
Updates for S2I
1 parent 788aa7f commit de94f2b

File tree

2 files changed

+82
-21
lines changed

2 files changed

+82
-21
lines changed

.devcontainer/devcontainer.json

Lines changed: 51 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,56 @@
44
"service": "app",
55
"workspaceFolder": "/app",
66
"remoteUser": "devops",
7-
"extensions": [
8-
"VisualStudioExptTeam.vscodeintellicode",
9-
"ms-python.python",
10-
"ms-python.vscode-pylance",
11-
"alexkrechik.cucumberautocomplete",
12-
"cstrap.flask-snippets",
13-
"yzhang.markdown-all-in-one",
14-
"bierner.github-markdown-preview",
15-
"hnw.vscode-auto-open-markdown-preview",
16-
"DavidAnson.vscode-markdownlint",
17-
"donjayamanne.githistory",
18-
"GitHub.vscode-pull-request-github",
19-
"hbenl.vscode-test-explorer",
20-
"LittleFoxTeam.vscode-python-test-adapter",
21-
"njpwerner.autodocstring",
22-
"redhat.vscode-yaml",
23-
"rangav.vscode-thunder-client",
24-
"streetsidesoftware.code-spell-checker",
25-
"wholroyd.jinja",
26-
"bbenoist.vagrant"
27-
],
7+
8+
"customizations": {
9+
"vscode": {
10+
"settings": {
11+
"[python]": {
12+
"editor.defaultFormatter": "ms-python.black-formatter",
13+
"editor.formatOnSave": true
14+
},
15+
"markdown-preview-github-styles.colorTheme": "light",
16+
"makefile.extensionOutputFolder": "/tmp",
17+
"python.testing.pytestArgs": [
18+
"tests"
19+
],
20+
"python.testing.unittestEnabled": false,
21+
"python.testing.pytestEnabled": true,
22+
"files.exclude": {
23+
"**/.git": true,
24+
"**/.DS_Store": true,
25+
"**/*.pyc": true,
26+
"**/__pycache__": true,
27+
"**/.pytest_cache": true
28+
}
29+
},
30+
"extensions": [
31+
"ms-python.python",
32+
"ms-python.vscode-pylance",
33+
"ms-python.pylint",
34+
"ms-python.flake8",
35+
"ms-python.black-formatter",
36+
"njpwerner.autodocstring",
37+
"wholroyd.jinja",
38+
"ms-vscode.makefile-tools",
39+
"tamasfe.even-better-toml",
40+
"yzhang.markdown-all-in-one",
41+
"hnw.vscode-auto-open-markdown-preview",
42+
"bierner.markdown-preview-github-styles",
43+
"davidanson.vscode-markdownlint",
44+
"donjayamanne.githistory",
45+
"GitHub.vscode-pull-request-github",
46+
"hbenl.vscode-test-explorer",
47+
"LittleFoxTeam.vscode-python-test-adapter",
48+
"redhat.vscode-yaml",
49+
"ms-azuretools.vscode-docker",
50+
"ms-kubernetes-tools.vscode-kubernetes-tools",
51+
"inercia.vscode-k3d",
52+
"rangav.vscode-thunder-client",
53+
"bbenoist.vagrant",
54+
"streetsidesoftware.code-spell-checker"
55+
]
56+
}
57+
},
2858
"postCreateCommand": "sudo pip install -r requirements.txt"
2959
}

pyproject.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[tool.poetry]
2+
name = "lab-flask-rest"
3+
version = "0.1.0"
4+
description = "REST API with Flask Lab"
5+
authors = ["Your Name <you@example.com>"]
6+
license = "Apache 2.0"
7+
readme = "README.md"
8+
9+
[tool.poetry.dependencies]
10+
python = "^3.9"
11+
Flask = "^2.1.2"
12+
redis = "^4.5.3"
13+
python-dotenv = "^1.0.0"
14+
gunicorn = "^20.1.0"
15+
honcho = "^1.1.0"
16+
17+
[tool.poetry.group.dev.dependencies]
18+
pylint = "^3.0.2"
19+
flake8 = "^6.1.0"
20+
black = "^23.10.1"
21+
pytest = "^7.4.3"
22+
pytest-pspec = "^0.0.4"
23+
pytest-cov = "^4.1.0"
24+
factory-boy = "^3.3.0"
25+
coverage = "^7.3.2"
26+
green = "^3.4.3"
27+
httpie = "^3.2.2"
28+
29+
[build-system]
30+
requires = ["poetry-core"]
31+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)