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.4 #4279

Merged
merged 4 commits into from
Sep 9, 2024
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
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 @@
# renovate: datasource=pypi depName=bandit
BANDIT_VERSION: "1.7.9"
# renovate: datasource=pypi depName=ruff
RUFF_VERSION: "0.6.3"
RUFF_VERSION: "0.6.4"

runs-on: ${{ matrix.os }}
permissions:
Expand Down Expand Up @@ -146,7 +146,7 @@
- name: Set number of cores for compilation
run: |
echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV

Check warning on line 149 in .github/workflows/python-code-quality.yml

View workflow job for this annotation

GitHub Actions / Python Code Quality Checks (ubuntu-22.04)

Temporarily downgraded pytest-pylint and pytest to allow merging other PRs. The errors reported with a newer version seem legitimite and should be fixed (2023-10-18, see https://github.com/OSGeo/grass/pull/3205) (2024-01-28, see https://github.com/OSGeo/grass/issues/3380)
- uses: rui314/setup-mold@0bf4f07ef9048ec62a45f9dbf2f098afa49695f0 # v1
- name: Build
run: .github/workflows/build_${{ matrix.os }}.sh $HOME/install
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.3
rev: v0.6.4
hooks:
# Run the linter.
- id: ruff
Expand Down
8 changes: 4 additions & 4 deletions gui/wxpython/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,15 +1608,15 @@ def __writeNvizState(self, view, iview, light, constants):
if constants:
self.file.write("%s<constant_planes>\n" % (" " * self.indent))
self.indent += 4
for idx, plane in enumerate(constants):
for plane in constants:
self.file.write("%s<plane>\n" % (" " * self.indent))
self.indent += 4
self.__writeTagWithValue("height", constants[idx]["constant"]["value"])
self.__writeTagWithValue("height", plane["constant"]["value"])
self.__writeTagWithValue(
"fine_resolution", constants[idx]["constant"]["resolution"]
"fine_resolution", plane["constant"]["resolution"]
)
self.__writeTagWithValue(
"color", constants[idx]["constant"]["color"], format="s"
"color", plane["constant"]["color"], format="s"
)
self.indent -= 4
self.file.write("%s</plane>\n" % (" " * self.indent))
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/iscatt/iscatt_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def SetData(self, cats):
# if key is missing condition is always True (full scatter plor
# is computed)
if scatt_id in self.cats[cat_id]:
self.cats[cat_id][scatt_id]["np_vals"] = cats[cat_id][scatt_id][
self.cats[cat_id][scatt_id]["np_vals"] = scatt_ids[scatt_id][
"np_vals"
]

Expand Down
Loading