Skip to content

Commit 3e8f425

Browse files
Bump ruff from 0.8.4 to 0.9.4 in the pip group (#33)
* Bump ruff from 0.8.4 to 0.9.4 in the pip group Bumps the pip group with 1 update: [ruff](https://github.com/astral-sh/ruff). Updates `ruff` from 0.8.4 to 0.9.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.8.4...0.9.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip ... Signed-off-by: dependabot[bot] <[email protected]> * Update .pre-commit-config.yaml * lint * lint 2 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jeremy Tuloup <[email protected]>
1 parent dca7a8b commit 3e8f425

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ repos:
5757
["traitlets>=5.13"]
5858

5959
- repo: https://github.com/astral-sh/ruff-pre-commit
60-
rev: v0.7.1
60+
rev: v0.9.4
6161
hooks:
6262
- id: ruff
6363
types_or: [python, jupyter]

jupyter_builder/commands.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,10 @@ def noop(x, y, z):
7979

8080
# Check for overlap.
8181
if (
82-
gte(x1, y1, True)
83-
and ly(x1, y2, True)
84-
or gy(x2, y1, True)
85-
and ly(x2, y2, True)
86-
or gte(y1, x1, True)
87-
and lx(y1, x2, True)
88-
or gx(y2, x1, True)
89-
and lx(y2, x2, True)
82+
(gte(x1, y1, True) and ly(x1, y2, True))
83+
or (gy(x2, y1, True) and ly(x2, y2, True))
84+
or (gte(y1, x1, True) and lx(y1, x2, True))
85+
or (gx(y2, x1, True) and lx(y2, x2, True))
9086
):
9187
# if we ever find an overlap, we can return immediately
9288
return 0

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test = [
5050
"jupyterlab",
5151
]
5252
# Check ruff version is aligned with the one in .pre-commit-config.yaml
53-
dev = ["build", "mypy", "pre-commit", "hatch", "ruff==0.8.4"]
53+
dev = ["build", "mypy", "pre-commit", "hatch", "ruff==0.9.4"]
5454

5555
[project.scripts]
5656
jupyter-builder = "jupyter_builder.main:main"

0 commit comments

Comments
 (0)