Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump ruff from 0.5.0 to 0.5.1 #341

Merged
merged 4 commits into from
Jul 12, 2024
Merged
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.5.0'
rev: 'v0.5.1'
hooks:
- id: ruff
args:
Expand Down
42 changes: 21 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ boto3 = "^1.26.0"
optional = true

[tool.poetry.group.quality.dependencies]
ruff = "==0.5.0"
ruff = "==0.5.1"
mypy = "==1.10.0"
types-requests = ">=2.0.0"
types-python-dateutil = "^2.8.0"
Expand Down
2 changes: 1 addition & 1 deletion src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def event_loop(request) -> Generator:

@pytest_asyncio.fixture(scope="function")
async def async_client() -> AsyncGenerator[AsyncClient, None]:
async with AsyncClient(
async with AsyncClient( # noqa: S113
app=app, base_url=f"http://api.localhost:8050{settings.API_V1_STR}", follow_redirects=True
) as client:
yield client
Expand Down
12 changes: 6 additions & 6 deletions src/tests/endpoints/test_cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_create_camera(
async_client: AsyncClient,
camera_session: AsyncSession,
Expand Down Expand Up @@ -69,7 +69,7 @@ async def test_create_camera(
(2, 1, 200, None, 0),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_camera(
async_client: AsyncClient,
camera_session: AsyncSession,
Expand Down Expand Up @@ -100,7 +100,7 @@ async def test_get_camera(
(2, 200, None, pytest.camera_table),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_fetch_cameras(
async_client: AsyncClient,
camera_session: AsyncSession,
Expand Down Expand Up @@ -135,7 +135,7 @@ async def test_fetch_cameras(
(2, 2, 403, "Incompatible token scope."),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_delete_camera(
async_client: AsyncClient,
camera_session: AsyncSession,
Expand Down Expand Up @@ -167,7 +167,7 @@ async def test_delete_camera(
(2, 1, 403, "Incompatible token scope."),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_create_camera_token(
async_client: AsyncClient,
camera_session: AsyncSession,
Expand Down Expand Up @@ -199,7 +199,7 @@ async def test_create_camera_token(
(1, 200, None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_heartbeat(
async_client: AsyncClient,
camera_session: AsyncSession,
Expand Down
12 changes: 6 additions & 6 deletions src/tests/endpoints/test_detections.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(None, 1, {"azimuth": 45.6}, 201, None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_create_detection(
async_client: AsyncClient,
detection_session: AsyncSession,
Expand Down Expand Up @@ -65,7 +65,7 @@ async def test_create_detection(
(1, 2, 200, None, 1),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_detection(
async_client: AsyncClient,
detection_session: AsyncSession,
Expand Down Expand Up @@ -95,7 +95,7 @@ async def test_get_detection(
(1, 200, None, pytest.detection_table),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_fetch_detections(
async_client: AsyncClient,
detection_session: AsyncSession,
Expand Down Expand Up @@ -131,7 +131,7 @@ async def test_fetch_detections(
(2, 1, {"is_wildfire": True}, 403, None, 0),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_label_detection(
async_client: AsyncClient,
detection_session: AsyncSession,
Expand Down Expand Up @@ -167,7 +167,7 @@ async def test_label_detection(
(2, None, 200, None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_detection_url(
async_client: AsyncClient,
detection_session: AsyncSession,
Expand Down Expand Up @@ -210,7 +210,7 @@ async def test_get_detection_url(
(1, 2, 403, None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_delete_detection(
async_client: AsyncClient,
detection_session: AsyncSession,
Expand Down
2 changes: 1 addition & 1 deletion src/tests/endpoints/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
({"username": "first_login", "password": "first_pwd"}, 200, None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_login_with_creds(
async_client: AsyncClient,
user_session: AsyncSession,
Expand Down
10 changes: 5 additions & 5 deletions src/tests/endpoints/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_create_user(
async_client: AsyncClient,
user_session: AsyncSession,
Expand Down Expand Up @@ -77,7 +77,7 @@ async def test_create_user(
(0, 2, 200, None, 1),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_user(
async_client: AsyncClient,
user_session: AsyncSession,
Expand Down Expand Up @@ -107,7 +107,7 @@ async def test_get_user(
(1, 403, "Incompatible token scope."),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_fetch_users(
async_client: AsyncClient,
user_session: AsyncSession,
Expand Down Expand Up @@ -137,7 +137,7 @@ async def test_fetch_users(
(1, 2, 403, "Incompatible token scope."),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_delete_user(
async_client: AsyncClient,
user_session: AsyncSession,
Expand Down Expand Up @@ -169,7 +169,7 @@ async def test_delete_user(
(1, 2, {"password": "HeyPyro!"}, 403, "Incompatible token scope.", None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_update_user_password(
async_client: AsyncClient,
user_session: AsyncSession,
Expand Down
Loading