Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#525)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and blink1073 authored Sep 5, 2023
1 parent 790062b commit a4de95e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.2
rev: 0.26.3
hooks:
- id: check-github-workflows

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]

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

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.276
rev: v0.0.287
hooks:
- id: ruff
args: ["--fix"]
6 changes: 3 additions & 3 deletions jupyter_releaser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ def bump_version(version_spec, *, changelog_path="", version_cmd=""): # noqa
assert v.dev is not None
version_spec = f"{v.major}.{v.minor}.{v.micro}.dev{v.dev + 1}"

else:
else: # noqa: PLR5501
# Handle dev version spec.
if version_spec == "dev": # noqa
if version_spec == "dev":
if v.pre:
version_spec = f"{v.major}.{v.minor}.{v.micro}.dev0"
# Bump to next minor dev.
Expand Down Expand Up @@ -363,7 +363,7 @@ def release_for_url(gh, url):
"""Get release response data given a release url"""
release = None
for rel in gh.repos.list_releases():
if rel.html_url == url or rel.url == url:
if url in (rel.html_url, rel.url):
release = rel
if not release:
msg = f"No release found for url {url}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ dependencies = [
"black==23.3.0",
"mdformat>0.7",
"mdformat-gfm>=0.3.5",
"ruff==0.0.276"
"ruff==0.0.287"
]
detached = true
[tool.hatch.envs.lint.scripts]
Expand Down

0 comments on commit a4de95e

Please sign in to comment.