Skip to content

Commit

Permalink
Bump ruff from 0.0.249 to 0.0.252 (jupyterlab#14100)
Browse files Browse the repository at this point in the history
* Bump ruff from 0.0.249 to 0.0.252

Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.249 to 0.0.252.
- [Release notes](https://github.com/charliermarsh/ruff/releases)
- [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](astral-sh/ruff@v0.0.249...v0.0.252)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Align version and fix new rules

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Frédéric Collonval <[email protected]>
  • Loading branch information
dependabot[bot] and fcollonval authored Feb 28, 2023
1 parent 13ba375 commit 6c05fb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.249
rev: v0.0.252
hooks:
- id: ruff
args: ["--fix"]
Expand Down
6 changes: 3 additions & 3 deletions jupyterlab/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def list_extensions(self): # noqa
for item in sorted(disabled):
# Show that all plugins will be disabled if the whole extension matches
if item in all_exts:
item += " (all plugins)"
item += " (all plugins)" # noqa PLW2901
logger.info(" %s" % item)

# Here check if modules are improperly shadowed
Expand Down Expand Up @@ -936,7 +936,7 @@ def uninstall_extension(self, name):
# Handle local extensions.
if extname in local:
config = self._read_build_config()
data = config.setdefault("local_extensions", {})
data = config.setdefault("local_extensions", {}) # noqa PLW2901
del data[extname]
self._write_build_config(config)
return True
Expand Down Expand Up @@ -1551,7 +1551,7 @@ def _get_linked_packages(self):
return info

for path in glob(pjoin(dname, "*.tgz")):
path = osp.abspath(path)
path = osp.abspath(path) # noqa PLW2901
data = read_package(path)
name = data["name"]
if name not in info:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ dev = [
"coverage",
"hatch",
"bump2version",
"ruff==0.0.249",
"ruff==0.0.252",
"black[jupyter]==23.1.0"
]

Expand Down

0 comments on commit 6c05fb8

Please sign in to comment.