Skip to content

Commit 59e92ad

Browse files
Ruff Check for all py files (#116)
* ruff-check.yml file updated * test of ruff-check * ruff-check-yaml updated * test * workflow error fixed * error fixed * final check * test for ruff-check on non py files * check for a py file * all pyhton files instead of just api-server and state-managerment * test check for all changed py files * will check for all py files * fixed init
1 parent ae413e2 commit 59e92ad

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ruff-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
python-version: '3.12'
2929

30-
# 3. Determine changed Python files in api-server/ and state-manager/
30+
# 3. Determine changed Python files
3131
- name: Get changed Python files
3232
id: changed-files
3333
run: |
@@ -41,7 +41,7 @@ jobs:
4141
4242
# List all changed .py files in target directories
4343
FILES=$(git diff --name-only --diff-filter=ACMRT $BASE_SHA $HEAD_SHA \
44-
| grep -E '^(api-server|state-manager)/.*\.py$' || true)
44+
| grep -E '\.py$' || true)
4545
4646
echo "files=$FILES" >> "$GITHUB_OUTPUT"
4747

api-server/app/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
main file for exosphere apis
33
"""
4+
45
import os
56
from beanie import init_beanie
67
from fastapi import FastAPI

0 commit comments

Comments
 (0)