Skip to content

Commit a4de95e

Browse files
[pre-commit.ci] pre-commit autoupdate (#525)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.23.2 → 0.26.3](python-jsonschema/check-jsonschema@0.23.2...0.26.3) - [github.com/executablebooks/mdformat: 0.7.16 → 0.7.17](hukkin/mdformat@0.7.16...0.7.17) - [github.com/psf/black: 23.3.0 → 23.7.0](psf/black@23.3.0...23.7.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.287](astral-sh/ruff-pre-commit@v0.0.276...v0.0.287) * sync deps and lint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <[email protected]>
1 parent 790062b commit a4de95e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.23.2
23+
rev: 0.26.3
2424
hooks:
2525
- id: check-github-workflows
2626

2727
- repo: https://github.com/executablebooks/mdformat
28-
rev: 0.7.16
28+
rev: 0.7.17
2929
hooks:
3030
- id: mdformat
3131
additional_dependencies:
3232
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]
3333

3434
- repo: https://github.com/psf/black
35-
rev: 23.3.0
35+
rev: 23.7.0
3636
hooks:
3737
- id: black
3838

3939
- repo: https://github.com/astral-sh/ruff-pre-commit
40-
rev: v0.0.276
40+
rev: v0.0.287
4141
hooks:
4242
- id: ruff
4343
args: ["--fix"]

jupyter_releaser/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ def bump_version(version_spec, *, changelog_path="", version_cmd=""): # noqa
320320
assert v.dev is not None
321321
version_spec = f"{v.major}.{v.minor}.{v.micro}.dev{v.dev + 1}"
322322

323-
else:
323+
else: # noqa: PLR5501
324324
# Handle dev version spec.
325-
if version_spec == "dev": # noqa
325+
if version_spec == "dev":
326326
if v.pre:
327327
version_spec = f"{v.major}.{v.minor}.{v.micro}.dev0"
328328
# Bump to next minor dev.
@@ -363,7 +363,7 @@ def release_for_url(gh, url):
363363
"""Get release response data given a release url"""
364364
release = None
365365
for rel in gh.repos.list_releases():
366-
if rel.html_url == url or rel.url == url:
366+
if url in (rel.html_url, rel.url):
367367
release = rel
368368
if not release:
369369
msg = f"No release found for url {url}"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ dependencies = [
9898
"black==23.3.0",
9999
"mdformat>0.7",
100100
"mdformat-gfm>=0.3.5",
101-
"ruff==0.0.276"
101+
"ruff==0.0.287"
102102
]
103103
detached = true
104104
[tool.hatch.envs.lint.scripts]

0 commit comments

Comments
 (0)