Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#507)
Browse files Browse the repository at this point in the history
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 May 6, 2023
1 parent 0243a2b commit 576e34a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.260
rev: v0.0.263
hooks:
- id: ruff
args: ["--fix"]
5 changes: 4 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ version: 2
sphinx:
configuration: docs/source/conf.py
python:
version: 3.8
install:
# install itself with pip install .
- method: pip
path: .
extra_requirements:
- docs
build:
os: ubuntu-22.04
tools:
python: "3.11"
2 changes: 1 addition & 1 deletion jupyter_releaser/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def start_local_pypi():
"""Start a local PyPI server"""
temp_dir = TemporaryDirectory()
cmd = f"pypi-server run -p 8081 -P . -a . -o -v {temp_dir.name}"
proc = Popen(shlex.split(cmd), stdout=PIPE)
proc = Popen(shlex.split(cmd), stdout=PIPE) # noqa
# Wait for the server to start
while True:
assert proc.stdout is not None
Expand Down
4 changes: 2 additions & 2 deletions jupyter_releaser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _run_win(cmd, **kwargs):
check = kwargs.pop("check", True)

try:
output = check_output(parts, **kwargs).decode("utf-8").strip()
output = check_output(parts, **kwargs).decode("utf-8").strip() # noqa
log(output)
return output
except CalledProcessError as e:
Expand Down Expand Up @@ -727,7 +727,7 @@ def ensure_mock_github():
run(f"'{python}' -m pip install fastapi uvicorn")

proc = subprocess.Popen(
[python, "-m", "uvicorn", "jupyter_releaser.mock_github:app", "--port", str(port)]
[python, "-m", "uvicorn", "jupyter_releaser.mock_github:app", "--port", str(port)] # noqa
)

try:
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.260"
"ruff==0.0.263"
]
detached = true
[tool.hatch.envs.lint.scripts]
Expand Down

0 comments on commit 576e34a

Please sign in to comment.