Skip to content

Commit

Permalink
Backport ruff/black/pre-commit updates to align versions (#15345)
Browse files Browse the repository at this point in the history
* Backport ruff, black[jupyter] and pre-commit updates
    # Conflicts:

* Ruff 286 -> 287

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
krassowski and dependabot[bot] committed Nov 2, 2023
1 parent 886eac3 commit da9f05f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ repos:
exclude: (.bumpversion.cfg|yarn.js)

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.1
rev: 0.27.0
hooks:
- id: check-github-workflows

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.282
rev: v0.0.292
hooks:
- id: ruff
args: ["--fix"]
Expand Down
4 changes: 2 additions & 2 deletions jupyterlab/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,15 +1053,15 @@ def unlink_package(self, path):

found = None
for name, source in linked.items():
if path in (name, source):
if path in {name, source}:
found = name

if found:
del linked[found]
else:
local = config.setdefault("local_extensions", {})
for name, source in local.items():
if path in (name, source):
if path in {name, source}:
found = name
if found:
del local[found]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ dev = [
"coverage",
"hatch",
"bump2version",
"ruff==0.0.286",
"black[jupyter]==23.7.0"
"ruff==0.0.292",
"black[jupyter]==23.10.1"
]

[tool.check-wheel-contents]
Expand Down

0 comments on commit da9f05f

Please sign in to comment.