Skip to content
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
3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
"automerge": true
}
],
"pre-commit": {
"enabled": true
},
"rebaseWhen": "behind-base-branch"
}
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
rev: v0.14.5
hooks:
- id: ruff
name: 🐶 Ruff lint
Expand All @@ -13,15 +13,15 @@ repos:
name: 🐶 Ruff format

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.21.1
hooks:
- id: pyupgrade
name: ⬆️ Upgrade Python syntax
args:
- --py312-plus

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: check-added-large-files
name: 🗜️ Check for added large files
Expand Down Expand Up @@ -86,20 +86,20 @@ repos:
- id: trailing-whitespace
name: ✄ Trim trailing whitespace

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
name: 💄 Ensuring files are prettier
additional_dependencies:
- prettier@3.3.3
- prettier-plugin-sort-json@3.1.0
- prettier@3.6.2
- prettier-plugin-sort-json@4.1.1
exclude_types:
- python
exclude: ^uv.lock$

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
rev: v1.37.1
hooks:
- id: yamllint
name: 🎗 Check YAML files with yamllint
Expand Down
8 changes: 4 additions & 4 deletions go2rtc_client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def __str__(self) -> str:
)


def handle_error[**_P, _R](
func: Callable[_P, Coroutine[Any, Any, _R]],
) -> Callable[_P, Coroutine[Any, Any, _R]]:
def handle_error[**P, R](
func: Callable[P, Coroutine[Any, Any, R]],
) -> Callable[P, Coroutine[Any, Any, R]]:
"""Wrap aiohttp and mashumaro errors."""

@wraps(func)
async def _func(*args: _P.args, **kwargs: _P.kwargs) -> _R:
async def _func(*args: P.args, **kwargs: P.kwargs) -> R:
try:
return await func(*args, **kwargs)
except (
Expand Down
4 changes: 2 additions & 2 deletions go2rtc_client/ws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
)

__all__ = [
"Go2RtcWsClient",
"ReceiveMessages",
"SendMessages",
"Go2RtcWsClient",
"WebRTCAnswer",
"WebRTCCandidate",
"WebRTCOffer",
"WebRTCAnswer",
"WsError",
]
2 changes: 1 addition & 1 deletion go2rtc_client/ws/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from mashumaro.mixins.orjson import DataClassORJSONMixin
from mashumaro.types import Discriminator
from webrtc_models import (
RTCIceServer, # noqa: TCH002 # Mashumaro needs the import to generate the correct code
RTCIceServer, # noqa: TC002 # Mashumaro needs the import to generate the correct code
)


Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ asyncio_mode = "auto"

[tool.ruff.lint]
ignore = [
"ANN101", # Self... explanatory
"ANN102", # cls... just as useless
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"COM812", # Recommended to disable due conflicts with ruff format
"D203", # Conflicts with other rules
Expand Down