Skip to content

Commit

Permalink
Update to Ruff 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Jan 24, 2025
1 parent a2ef32d commit 3e573b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions inboard/app/main_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

def _compose_message() -> str:
version = (
f"{sys.version_info.major}.{sys.version_info.minor}"
f".{sys.version_info.micro}"
f"{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}"
)
process_manager = os.getenv("PROCESS_MANAGER", "gunicorn")
if process_manager not in {"gunicorn", "uvicorn"}:
Expand Down
2 changes: 1 addition & 1 deletion inboard/gunicorn_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def calculate_workers(


# Gunicorn settings
bind = os.getenv("BIND") or f'{os.getenv("HOST", "0.0.0.0")}:{os.getenv("PORT", "80")}'
bind = os.getenv("BIND") or f"{os.getenv('HOST', '0.0.0.0')}:{os.getenv('PORT', '80')}"
accesslog = os.getenv("ACCESS_LOG", "-")
errorlog = os.getenv("ERROR_LOG", "-")
graceful_timeout = int(os.getenv("GRACEFUL_TIMEOUT", "120"))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ requires-python = ">=3.9,<4"
[project.optional-dependencies]
checks = [
"mypy==1.13.0",
"ruff>=0.7,<0.8",
"ruff>=0.9,<0.10",
]
docs = [
"mkdocs-material>=9,<10",
Expand Down

0 comments on commit 3e573b6

Please sign in to comment.