Skip to content

Commit

Permalink
Project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewAndreTaylor committed Feb 1, 2024
1 parent 6994f5a commit bc912da
Show file tree
Hide file tree
Showing 18 changed files with 101 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/branch_naming.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Assert Branch Naming Convention'
on: pull_request

jobs:
branch-naming-rules:
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-branch-name@master
with:
regex: '^.*-u\d+$'
ignore: master,development
min_length: 5
max_length: 20
13 changes: 13 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: pre-commit

on:
pull_request:
push:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
__pyc*
build
dist
.idea
.vscode
.tox
.pytest_cache
__pycache__/*
*.so
*.pyd
*.egg-info
*.whl
.venv
venv
instance
.DS_Store
__pycache__
*.pyc
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-all]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Snowfall-Saga
CSC301 Project
3 changes: 3 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from flask import Flask

app = Flask(__name__)
Empty file added app/auth/static/login.css
Empty file.
Empty file.
Empty file added app/config.py
Empty file.
Empty file added app/lobby/__init__.py
Empty file.
14 changes: 14 additions & 0 deletions app/lobby/lobby.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from flask import Blueprint

lobby = Blueprint(
"lobby",
__name__,
template_folder="templates",
static_folder="static",
static_url_path="assets",
)


@lobby.route("/")
def home():
return "Hello World"
Empty file added app/lobby/static/main.js
Empty file.
Empty file.
Empty file added app/models.py
Empty file.
Empty file added app/static/style.css
Empty file.
Empty file added app/trivia/trivia.py
Empty file.
16 changes: 16 additions & 0 deletions pull-request-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# User Story Name (User Story #)

User Story Goals:
- [ ] my code achieves the goal
- [ ] my code is working on multiple machines
- [ ] what architecture costs does implementing this story entail

Changes:
- [ ] Explain the changes made at a higher level
- [ ] Have dependencies/packages been added?

Checklist:
- [ ] my code follows the style guidelines
- [ ] my changes did not produce and new errors or warnings
- [ ] updated/added documentation and comments to reflect my changes
- [ ] I have added/updated tests for my changes
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flask==2.2.2

0 comments on commit bc912da

Please sign in to comment.