Skip to content

Commit 0eec274

Browse files
Merge pull request #14 from CarterPerez-dev/go-backend-template
Go backend template
2 parents cecf33c + 9524d62 commit 0eec274

27 files changed

+19
-23
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
defaults:
2121
run:
22-
working-directory: backend
22+
working-directory: backends/fastapi
2323

2424
steps:
2525
- name: Checkout code
@@ -30,24 +30,21 @@ jobs:
3030
with:
3131
python-version: '3.12'
3232

33-
- name: Cache pip dependencies
34-
uses: actions/cache@v4
33+
- name: Install uv
34+
uses: astral-sh/setup-uv@v5
3535
with:
36-
path: ~/.cache/pip
37-
key: ${{ runner.os }}-pip-${{ hashFiles('backend/pyproject.toml') }}
38-
restore-keys: |
39-
${{ runner.os }}-pip-
36+
enable-cache: true
37+
cache-dependency-glob: "backends/fastapi/pyproject.toml"
4038

4139
- name: Install dependencies
4240
run: |
43-
python -m pip install --upgrade pip
44-
pip install -e ".[dev]"
41+
uv sync --all-extras
4542
4643
- name: Run pylint
4744
id: pylint
4845
run: |
4946
echo "Running pylint..."
50-
if pylint app > pylint-output.txt 2>&1; then
47+
if uv run pylint app > pylint-output.txt 2>&1; then
5148
echo "PYLINT_PASSED=true" >> $GITHUB_ENV
5249
echo "No pylint errors found!"
5350
else
@@ -61,7 +58,7 @@ jobs:
6158
id: ruff
6259
run: |
6360
echo "Running ruff check..."
64-
if ruff check app > ruff-output.txt 2>&1; then
61+
if uv run ruff check app > ruff-output.txt 2>&1; then
6562
echo "RUFF_PASSED=true" >> $GITHUB_ENV
6663
echo "No ruff errors found!"
6764
else
@@ -76,7 +73,7 @@ jobs:
7673
run: |
7774
echo "Running mypy..."
7875
cd app
79-
if mypy . > ../mypy-output.txt 2>&1; then
76+
if uv run mypy . > ../mypy-output.txt 2>&1; then
8077
echo "MYPY_PASSED=true" >> $GITHUB_ENV
8178
echo "No mypy errors found"
8279
else
@@ -149,12 +146,11 @@ jobs:
149146
fi
150147
echo ''
151148
echo '<!-- lint-check-comment-marker -->'
152-
} > ../lint-report.md
149+
} > lint-report.md
153150
154151
- name: Post PR Comment
155152
if: github.event_name == 'pull_request'
156153
uses: peter-evans/create-or-update-comment@v4
157154
with:
158155
issue-number: ${{ github.event.pull_request.number }}
159-
body-path: lint-report.md
160-
comment-marker: lint-check-comment-marker
156+
body-path: backends/fastapi/lint-report.md

backends/fastapi/app/core/rate_limit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
ⒸAngelaMos | 2025
2+
ⒸAngelaMos | 2026
33
rate_limit.py
44
"""
55

frontends/react-native-ios/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{
3030
"backgroundColor": "#0a0a0a",
3131
"image": "./assets/splash-icon.png",
32-
"resizeMode": "cover"
32+
"imageWidth": 600
3333
}
3434
]
3535
],

frontends/react-scss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "biome check .",
1111
"lint:fix": "biome check --write .",
1212
"format": "biome format --write .",
13-
"typecheck": "tsc --noEmit",
13+
"typecheck": "tsc -b",
1414
"lint:scss": "stylelint '**/*.scss'",
1515
"lint:scss:fix": "stylelint '**/*.scss' --fix"
1616
},
48.4 KB
Loading
312 KB
Loading
43.6 KB
Loading
145 Bytes
Loading
956 Bytes
Loading
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)