-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump Ruff to v0.6.0 * axis/__main__.py:74:13: ASYNC110 Use `anyio.Event` instead of awaiting `anyio.sleep` in a `while` loop | 72 | try: 73 | if events: 74 | while True: | _____________^ 75 | | await asyncio.sleep(1) | |______________________________________^ ASYNC110 76 | 77 | except asyncio.CancelledError: | * axis/models/ptz_cgi.py:272:13: PLR1730 [*] Replace `if` statement with `z = max(z, 1)` | 270 | if self.area_zoom: 271 | x, y, z = self.area_zoom 272 | if z < 1: | _____________^ 273 | | z = 1 | |_____________________^ PLR1730 274 | data["areazoom"] = f"{x},{y},{z}" 275 | if self.center or self.area_zoom: | = help: Replace with `z = max(z, 1)`
- Loading branch information
Showing
4 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.5.2 | ||
rev: v0.6.0 | ||
hooks: | ||
- id: ruff | ||
args: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters