Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,23 @@ concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Ruff
run: pip install ruff

- name: Ruff (lint)
run: ruff check . --output-format=github
uses: astral-sh/ruff-action@v3
with:
version: 0.12.0
args: check . --config pyproject.toml --output-format=github --no-cache

- name: Ruff (format check)
run: ruff format --check .
uses: astral-sh/ruff-action@v3
with:
version: 0.12.0
args: format --check . --config pyproject.toml --no-cache
Empty file removed .vscode/settings.json
Empty file.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
]

[tool.ruff]
target-version = "py312"
target-version = "py313"
line-length = 100
src = ["src"]
extend-exclude = ["venv", ".venv", "build", "dist", "deploy"]
Expand Down
20 changes: 10 additions & 10 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import argparse
import base64
import json
Expand Down Expand Up @@ -633,11 +633,11 @@
return cursor.fetchone()

def get_process_log_download_data(
self,
endpoint_id: int,
supervisor_name: str,
process_name: str,
log_name: str
self,
endpoint_id: int,
supervisor_name: str,
process_name: str,
log_name: str
) -> tuple[str, str, str]:

platform = self.get_platform_data(endpoint_id)
Expand All @@ -650,11 +650,11 @@
return platform_host, platform_user, log_path+log_name

def get_container_log_download_data(
self,
endpoint_id: int,
container_name: str,
log_name: str
) -> tuple[str, str, str]:
self,
endpoint_id: int,
container_name: str,
log_name: str
) -> tuple[str, str, str]:

platform = self.get_platform_data(endpoint_id)
platform_host = platform[2]
Expand Down
Loading