Skip to content

Commit d14847b

Browse files
[pre-commit.ci] pre-commit autoupdate (#502)
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 5c89302 commit d14847b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
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.21.0
23+
rev: 0.22.0
2424
hooks:
2525
- id: check-github-workflows
2626

@@ -32,12 +32,12 @@ repos:
3232
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]
3333

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

3939
- repo: https://github.com/charliermarsh/ruff-pre-commit
40-
rev: v0.0.254
40+
rev: v0.0.260
4141
hooks:
4242
- id: ruff
4343
args: ["--fix"]

jupyter_releaser/changelog.py

Lines changed: 2 additions & 2 deletions
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 == "":
92+
if since == "": # noqa
9393
since = util.get_first_commit(ref or branch)
9494

9595
util.log(f"Getting changes to {repo} since {since} on branch {branch}...")
@@ -224,7 +224,7 @@ def format(changelog): # noqa
224224
return re.sub(r"\n\n+$", r"\n", changelog)
225225

226226

227-
def check_entry(
227+
def check_entry( # noqa
228228
ref,
229229
branch,
230230
repo,

jupyter_releaser/lib.py

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

140140
if not dry_run:
141-
dirty = util.run("git --no-pager diff --stat") != ""
141+
dirty = util.run("git --no-pager diff --stat") != "" # noqa
142142
if dirty:
143143
util.run("git stash")
144144
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
@@ -77,7 +77,7 @@ def check_dist(
7777
for cmd in test_commands:
7878
util.run(f"{bin_path}/{cmd}")
7979
except CalledProcessError as e:
80-
if test_cmd == "":
80+
if test_cmd == "": # noqa
8181
util.log(
8282
'You may need to set "check_imports" to appropriate Python package names in the config file.'
8383
)

jupyter_releaser/tee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def _read_stream(stream: StreamReader, callback: Callable[..., Any]) -> No
5252
break
5353

5454

55-
async def _stream_subprocess(args: str, **kwargs: Any) -> CompletedProcess:
55+
async def _stream_subprocess(args: str, **kwargs: Any) -> CompletedProcess: # noqa
5656
platform_settings: Dict[str, Any] = {}
5757
if platform.system() == "Windows":
5858
platform_settings["env"] = os.environ

jupyter_releaser/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get_version():
171171
return run(cmd).split("\n")[-1]
172172

173173
if SETUP_PY.exists():
174-
warnings.warn("Using deprecated setup.py invocation")
174+
warnings.warn("Using deprecated setup.py invocation", stacklevel=2)
175175
try:
176176
return run("python setup.py --version").split("\n")[-1]
177177
except CalledProcessError as e:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ test = "mypy --install-types --non-interactive {args:jupyter_releaser}"
9797

9898
[tool.hatch.envs.lint]
9999
dependencies = [
100-
"black==23.1.0",
100+
"black==23.3.0",
101101
"mdformat>0.7",
102102
"mdformat-gfm>=0.3.5",
103-
"ruff==0.0.254"
103+
"ruff==0.0.260"
104104
]
105105
detached = true
106106
[tool.hatch.envs.lint.scripts]

0 commit comments

Comments
 (0)