diff --git a/.gitea/workflows/check.yml b/.gitea/workflows/check.yml new file mode 100644 index 0000000..229e371 --- /dev/null +++ b/.gitea/workflows/check.yml @@ -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 \ No newline at end of file diff --git a/server.py b/server.py index ad5a19f..ecaf549 100644 --- a/server.py +++ b/server.py @@ -243,8 +243,7 @@ def index(): try: git = requests.get( "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( - "GIT_AUTH") else os.getenv("git_token")}, + headers={"Authorization": os.getenv("GIT_AUTH")}, ) git = git.json() git = git[0] @@ -681,8 +680,6 @@ def tools(): # region Error Catching # Catch all for GET requests - - @app.route("/") def catch_all(path: str):