Skip to content

Commit

Permalink
Merge pull request #48 from nyu-devops/update-spring-24
Browse files Browse the repository at this point in the history
Update spring 2024
  • Loading branch information
rofrano authored Feb 29, 2024
2 parents 7f63597 + e24a50d commit 34914d3
Show file tree
Hide file tree
Showing 8 changed files with 427 additions and 450 deletions.
14 changes: 10 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// spell: disable
{
"name": "Python & Redis",
"dockerComposeFile": "docker-compose.yml",
Expand All @@ -11,23 +12,28 @@
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"markdown-preview-github-styles.colorTheme": "light",
"makefile.extensionOutputFolder": "/tmp",
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"tests"
],
"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",
"ms-vscode.makefile-tools",
"yzhang.markdown-all-in-one",
"bierner.github-markdown-preview",
"hnw.vscode-auto-open-markdown-preview",
Expand All @@ -44,6 +50,6 @@
"ms-azuretools.vscode-docker"
]
}
},
}
// "postCreateCommand": ""
}
1 change: 1 addition & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
run: |
python -m pip install poetry
poetry config virtualenvs.create false
poetry lock --no-update
poetry install
- name: Linting
Expand Down
20 changes: 0 additions & 20 deletions .vscode/launch.json

This file was deleted.

26 changes: 0 additions & 26 deletions .vscode/settings.json

This file was deleted.

805 changes: 410 additions & 395 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "lab-github-actions"
name = "service"
version = "0.1.0"
description = "NYU DevOps Lab for learning GitHub Actions"
authors = ["John Rofrano <johnnyroy@johnrofrano.com>"]
Expand Down
2 changes: 1 addition & 1 deletion service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
############################################################
# Initialize the Flask instance
############################################################
def init_app():
def create_app():
"""Initialize the core application."""
app = Flask(__name__)
app.config.from_object(config)
Expand Down
7 changes: 4 additions & 3 deletions wsgi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""
Web Server Gateway Interface (WSGI) entry point
"""
from service import init_app

app = init_app()
from service import create_app

app = create_app()

if __name__ == "__main__":
app.run(host='0.0.0.0')
app.run(host="0.0.0.0")

0 comments on commit 34914d3

Please sign in to comment.