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

Bump ruff to 0.6.0 #486

Merged
merged 3 commits into from
Aug 16, 2024
Merged

Bump ruff to 0.6.0 #486

merged 3 commits into from
Aug 16, 2024

Conversation

Kane610
Copy link
Owner

@Kane610 Kane610 commented Aug 16, 2024

No description provided.

…g `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:
   |
…h `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)`
@Kane610 Kane610 merged commit f91cf18 into master Aug 16, 2024
1 check passed
@Kane610 Kane610 deleted the bump_ruff_to_0.6.0 branch August 16, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant