Skip to content

Commit

Permalink
ruff-error-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Darshan808 committed Oct 22, 2024
1 parent 5f10e1b commit bd40b1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions jupyter_builder/federated_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
except ImportError:
from tomli import load

from .core_path import default_core_path

from .commands import _test_overlap
from .core_path import default_core_path

DEPRECATED_ARGUMENT = object()

Expand Down
8 changes: 4 additions & 4 deletions jupyter_builder/jupyterlab_semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def compare_pre(self, other): # noqa PLR0911
else:
return compare_identifiers(str(a), str(b))

def inc(self, release, identifier=None): # noqa PLR0915
def inc(self, release, identifier=None):
logger.debug("inc release %s %s", self.prerelease, release)
if release == "premajor":
self.prerelease = []
Expand Down Expand Up @@ -901,7 +901,7 @@ def replace_carets(comp, loose):
def replace_caret(comp, loose):
r = regexp[CARETLOOSE] if loose else regexp[CARET]

def repl(mob): # noqa PLR0911
def repl(mob):
m0 = mob.group(0)
M, m, p, pr, _ = mob.groups()
logger.debug("caret %s %s %s %s %s %s", comp, m0, M, m, p, pr)
Expand Down Expand Up @@ -1001,7 +1001,7 @@ def replace_xrange(comp, loose):
comp = comp.strip()
r = regexp[XRANGELOOSE] if loose else regexp[XRANGE]

def repl(mob): # noqa PLR0911
def repl(mob):
ret = mob.group(0)
gtlt, M, m, p, pr, _ = mob.groups()

Expand Down Expand Up @@ -1076,7 +1076,7 @@ def replace_stars(comp, loose):
# 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
# 1.2 - 3.4 => >=1.2.0 <3.5.0
def hyphen_replace(mob):
from_, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb = mob.groups()
from_, fM, fm, fp, to, tM, tm, tp, tpr, tb = mob.groups()
if is_x(fM):
from_ = ""
elif is_x(fm):
Expand Down

0 comments on commit bd40b1b

Please sign in to comment.