Skip to content

Commit

Permalink
build(deps-dev): bump ruff from 0.5.0 to 0.5.1 (#341)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump ruff from 0.5.0 to 0.5.1

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.5.0...0.5.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* style(pre-commit): bump ruff to 0.5.1

* style(test): fix lint

* style(test): ignore asyncsession warning

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: F-G Fernandez <[email protected]>
  • Loading branch information
dependabot[bot] and frgfm authored Jul 12, 2024
1 parent ecaf7ae commit 29b7f6c
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 42 deletions.
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

0 comments on commit 29b7f6c

Please sign in to comment.