feat: Add ruff check
Some checks failed
Check Code Quality / RuffCheck (push) Failing after 25s
Build Docker / BuildImage (push) Successful in 57s

This commit is contained in:
2025-10-30 20:15:10 +11:00
parent da347fd860
commit 9e20a6171a
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
name: Check Code Quality
run-name: Ruff CI
on:
push:
jobs:
RuffCheck:
runs-on: [ubuntu-latest, amd]
steps:
- uses: actions/checkout@v2
- uses: astral-sh/ruff-action@v3

View File

@@ -243,8 +243,7 @@ def index():
try: try:
git = requests.get( git = requests.get(
"https://git.woodburn.au/api/v1/users/nathanwoodburn/activities/feeds?only-performed-by=true&limit=1", "https://git.woodburn.au/api/v1/users/nathanwoodburn/activities/feeds?only-performed-by=true&limit=1",
headers={"Authorization": os.getenv("GIT_AUTH") if os.getenv( headers={"Authorization": os.getenv("GIT_AUTH")},
"GIT_AUTH") else os.getenv("git_token")},
) )
git = git.json() git = git.json()
git = git[0] git = git[0]
@@ -681,8 +680,6 @@ def tools():
# region Error Catching # region Error Catching
# Catch all for GET requests # Catch all for GET requests
@app.route("/<path:path>") @app.route("/<path:path>")
def catch_all(path: str): def catch_all(path: str):