Skip to content

Commit 8ea2842

Browse files
author
Graham Greenfield
committed
init
0 parents  commit 8ea2842

File tree

15 files changed

+746
-0
lines changed

15 files changed

+746
-0
lines changed

.gitignore

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# -----------------------------------------------------------------------------
2+
# 1) Python: Byte-compiled / optimized / DLL files
3+
# -----------------------------------------------------------------------------
4+
__pycache__/
5+
*.py[cod]
6+
*$py.class
7+
*.egg-info
8+
dist/
9+
build/
10+
.eggs/
11+
12+
# -----------------------------------------------------------------------------
13+
# 2) Testing: pytest cache, coverage, etc.
14+
# -----------------------------------------------------------------------------
15+
.pytest_cache/
16+
.coverage
17+
htmlcov/
18+
19+
# -----------------------------------------------------------------------------
20+
# 3) pipenv: Lockfile, virtual env, etc. (Optional)
21+
# -----------------------------------------------------------------------------
22+
# Pipfile.lock can be committed if you want to lock exact versions
23+
# But if you prefer ignoring it:
24+
# Pipfile.lock
25+
# If you use a local pipenv .venv folder:
26+
.venv/
27+
28+
# -----------------------------------------------------------------------------
29+
# 4) Docker: If you have temporary build outputs or such
30+
# -----------------------------------------------------------------------------
31+
docker-compose.override.yml
32+
.env # If storing Docker env vars here
33+
# Ignore Docker-related cache or layers
34+
**/.dockerignore
35+
**/.docker/
36+
37+
# -----------------------------------------------------------------------------
38+
# 5) Node.js: if you have node dependencies
39+
# -----------------------------------------------------------------------------
40+
node_modules/
41+
npm-debug.log
42+
yarn-error.log
43+
44+
# -----------------------------------------------------------------------------
45+
# 6) OS: macOS, Windows, or Linux system files
46+
# -----------------------------------------------------------------------------
47+
.DS_Store
48+
Thumbs.db
49+
*.swp
50+
*.swo
51+
*.swn
52+
*.swm
53+
*.swn
54+
55+
# -----------------------------------------------------------------------------
56+
# 7) IDE or editor-specific:
57+
# -----------------------------------------------------------------------------
58+
.vscode/
59+
.idea/
60+
*.iml
61+
62+
# -----------------------------------------------------------------------------
63+
# 8) Additional ephemeral / local
64+
# -----------------------------------------------------------------------------
65+
.env.local
66+
.env.*
67+
*.log
68+
*.bak
69+
*.tmp
70+
~$*
71+

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.PHONY: build up down test shell
2+
3+
build:
4+
docker-compose build
5+
6+
# By default, we might just run dev
7+
up:
8+
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
9+
10+
down:
11+
docker-compose -f docker-compose.yml -f docker-compose.dev.yml down
12+
13+
test:
14+
# Run pytest in the dev container
15+
docker exec -it dev_env pytest
16+
17+
shell:
18+
docker exec -it dev_env /bin/bash

Pipfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Pipfile
2+
[packages]
3+
flask = "==2.2.5"
4+
mysql-connector-python = "==8.0.33"
5+
pytest = "*"
6+
invoke = "*"
7+
8+
[dev-packages]
9+
# If you'd like to differentiate dev packages
10+
11+
[requires]
12+
python_version = "3.10"

0 commit comments

Comments
 (0)