Skip to content

Commit 0469672

Browse files
[pre-commit.ci] pre-commit autoupdate (#517)
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 78d20e5 commit 0469672

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.pre-commit-config.yaml

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

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

@@ -36,8 +36,8 @@ repos:
3636
hooks:
3737
- id: black
3838

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

jupyter_releaser/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_version_entry(
8989
branch = branch or util.get_branch()
9090
since = since or util.get_latest_tag(ref or branch, since_last_stable)
9191

92-
if since == "": # noqa
92+
if since == "":
9393
since = util.get_first_commit(ref or branch)
9494

9595
util.log(f"Getting changes to {repo} since {since} on branch {branch}...")

jupyter_releaser/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class ReleaseHelperGroup(click.Group):
1616
"""Click group tailored to jupyter-releaser"""
1717

18-
_needs_checkout_dir: t.Dict[str, bool] = {}
18+
_needs_checkout_dir: t.Dict[str, bool] = {} # noqa
1919

2020
def invoke(self, ctx): # noqa
2121
"""Handle jupyter-releaser config while invoking a command"""

jupyter_releaser/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def make_changelog_pr(auth, branch, repo, title, commit_message, body, dry_run=F
139139
pr_branch = f"changelog-{uuid.uuid1().hex}"
140140

141141
if not dry_run:
142-
dirty = util.run("git --no-pager diff --stat") != "" # noqa
142+
dirty = util.run("git --no-pager diff --stat") != ""
143143
if dirty:
144144
util.run("git stash")
145145
util.run(f"{util.GIT_FETCH_CMD} {branch}")

jupyter_releaser/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check_dist(
8383
for cmd in test_commands:
8484
util.run(f"{bin_path}/{cmd}")
8585
except CalledProcessError as e:
86-
if test_cmd == "": # noqa
86+
if test_cmd == "":
8787
util.log(
8888
'You may need to set "check_imports" to appropriate Python package names in the config file.'
8989
)

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.270"
101+
"ruff==0.0.276"
102102
]
103103
detached = true
104104
[tool.hatch.envs.lint.scripts]

0 commit comments

Comments
 (0)