Skip to content

Commit 2089d9e

Browse files
fix(lint): import AsyncIterator from collections.abc (UP035) (#8)
* fix(lint): import AsyncIterator from collections.abc - Fixes ruff UP035 in app/main.py - Tone down Dependabot from weekly to monthly, 5->2 PRs per ecosystem - Closes #N/A * style: apply ruff --fix and ruff format
1 parent 27548b3 commit 2089d9e

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ updates:
33
- package-ecosystem: "pip"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77
day: "monday"
8-
open-pull-requests-limit: 5
8+
open-pull-requests-limit: 2
99
labels:
1010
- "dependencies"
1111
- "python"
1212
- package-ecosystem: "github-actions"
1313
directory: "/"
1414
schedule:
15-
interval: "weekly"
15+
interval: "monthly"
1616
day: "monday"
17-
open-pull-requests-limit: 5
17+
open-pull-requests-limit: 2
1818
labels:
1919
- "dependencies"
2020
- "github-actions"

app/core/logging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ def configure_logging() -> None:
2626
root.setLevel(level)
2727

2828
# Quiet down noisy third-party loggers
29-
logging.getLogger("uvicorn.access").setLevel(logging.WARNING if not settings.debug else logging.INFO)
29+
logging.getLogger("uvicorn.access").setLevel(
30+
logging.WARNING if not settings.debug else logging.INFO
31+
)

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
from __future__ import annotations
88

9+
from collections.abc import AsyncIterator
910
from contextlib import asynccontextmanager
10-
from typing import AsyncIterator
1111

1212
from fastapi import FastAPI
1313

0 commit comments

Comments
 (0)