Skip to content

Commit 1054d30

Browse files
committed
Lint the code
1 parent d8e1e42 commit 1054d30

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

jupyter_releaser/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def main(force):
189189
"--python-target",
190190
envvar="RH_PYTHON_TARGET",
191191
default="",
192-
help="The Python package import to check for; default to the Python package name."
192+
help="The Python package import to check for; default to the Python package name.",
193193
)
194194
]
195195

jupyter_releaser/python.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import shlex
88
from glob import glob
99
from pathlib import Path
10-
from subprocess import PIPE, CalledProcessError
10+
from subprocess import CalledProcessError
11+
from subprocess import PIPE
1112
from subprocess import Popen
1213
from tempfile import TemporaryDirectory
1314

@@ -62,7 +63,9 @@ def check_dist(dist_file, test_cmd=""):
6263
util.run(f"{bin_path}/{test_cmd}")
6364
except CalledProcessError as e:
6465
if test_cmd == "":
65-
util.log('You may need to set "python_target" to an appropriate Python package name in the config file.')
66+
util.log(
67+
'You may need to set "python_target" to an appropriate Python package name in the config file.'
68+
)
6669
raise e
6770

6871

jupyter_releaser/tests/test_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,9 @@ def test_check_python(py_package, runner, build_mock, git_prep):
435435
assert "after-check-python" in log
436436

437437

438-
def test_check_python_different_names(monkeypatch, py_package_different_names, runner, build_mock, git_prep):
438+
def test_check_python_different_names(
439+
monkeypatch, py_package_different_names, runner, build_mock, git_prep
440+
):
439441
monkeypatch.setenv("RH_PYTHON_TARGET", "foobar")
440442
runner(["build-python"])
441443
runner(["check-python"])

jupyter_releaser/tests/util.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def write_files(git_repo, sub_packages=[], package_name="foo", module_name=None)
180180
setuppy.write_text(SETUP_PY_TEMPLATE, encoding="utf-8")
181181

182182
setuppy = git_repo / "setup.cfg"
183-
setuppy.write_text(setup_cfg_template(package_name, module_name), encoding="utf-8")
183+
setuppy.write_text(
184+
setup_cfg_template(package_name, module_name), encoding="utf-8"
185+
)
184186

185187
tbump = git_repo / "tbump.toml"
186188
tbump.write_text(
@@ -223,7 +225,7 @@ def write_files(git_repo, sub_packages=[], package_name="foo", module_name=None)
223225
write_files(
224226
git_repo / sub_package,
225227
package_name=package_name,
226-
module_name=module_name
228+
module_name=module_name,
227229
)
228230
run(f"git add {sub_package}")
229231
run(f'git commit -m "initial python {sub_package}"')
@@ -234,7 +236,7 @@ def write_files(git_repo, sub_packages=[], package_name="foo", module_name=None)
234236
git_repo,
235237
sub_packages=sub_packages,
236238
package_name=package_name,
237-
module_name=module_name
239+
module_name=module_name,
238240
)
239241
run("git add .")
240242
run('git commit -m "initial python package"')

0 commit comments

Comments
 (0)