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

CI(deps): Update ruff to v0.6.8 #4394

Merged
merged 4 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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 .github/workflows/python-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# renovate: datasource=pypi depName=bandit
BANDIT_VERSION: "1.7.10"
# renovate: datasource=pypi depName=ruff
RUFF_VERSION: "0.6.7"
RUFF_VERSION: "0.6.8"

runs-on: ${{ matrix.os }}
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.7
rev: v0.6.8
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/gui_core/gselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def SetData(self, **kargs):
self.multiple = kargs["multiple"]
if "onPopup" in kargs:
self.onPopup = kargs["onPopup"]
if kargs.get("layerTree", None):
if kargs.get("layerTree"):
self.filterItems = [] # reset
ltype = kargs["type"]
for layer in kargs["layerTree"].GetVisibleLayers(skipDigitized=True):
Expand Down
4 changes: 2 additions & 2 deletions scripts/r.in.wms/wms_drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def _findTileMats(self, tile_mats, region, bbox):

best_diff = best_scale_den - scale_den
mat_diff = mat_scale_den - scale_den
if (best_diff < mat_diff and mat_diff < 0) or (
if (best_diff < mat_diff < 0) or (
best_diff > mat_diff and best_diff > 0
):
echoix marked this conversation as resolved.
Show resolved Hide resolved
best_t_mat = t_mat
Expand Down Expand Up @@ -1020,7 +1020,7 @@ def _parseTilePattern(self, group_t_patts, bbox, region):
best_diff = best_res - res[comp_res]
tile_diff = t_res[comp_res] - res[comp_res]

if (best_diff < tile_diff and tile_diff < 0) or (
if (best_diff < tile_diff < 0) or (
best_diff > tile_diff and best_diff > 0
):
echoix marked this conversation as resolved.
Show resolved Hide resolved
best_res = t_res[comp_res]
Expand Down
Loading