Skip to content

Commit 749241d

Browse files
authored
Merge pull request #292 from blink1073/update-check-links-settings-again
2 parents 73d2f71 + f23e508 commit 749241d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

jupyter_releaser/lib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
5454
python = sys.executable.replace(os.sep, "/")
5555
cmd = f"{python} -m pytest --noconftest --check-links --check-links-cache "
5656
cmd += f"--check-links-cache-expire-after {links_expire} "
57-
cmd += "--disable-warnings --quiet "
58-
cmd += "-raXs "
57+
cmd += "-raXs --color yes --quiet "
5958
cmd += f"--check-links-cache-name {cache_dir}/check-release-links "
6059
# do not run doctests, since they might depend on other state.
6160
cmd += "-p no:doctest "
@@ -89,16 +88,17 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
8988
util.log(cmd)
9089

9190
fails = 0
91+
separator = f"\n\n{'-' * 80}\n"
9292
for f in files:
9393
file_cmd = cmd + f' "{f}"'
9494
try:
95-
util.log(f"\nC{f}...")
95+
util.log(f"{separator}{f}...")
9696
util.run(file_cmd, shell=False, echo=False)
9797
except Exception as e:
9898
# Return code 5 means no tests were run (no links found)
9999
if e.returncode != 5:
100100
try:
101-
util.log(f"{f} (second attempt)...")
101+
util.log(f"\n{f} (second attempt)...\n")
102102
util.run(file_cmd + " --lf", shell=False, echo=False)
103103
except Exception:
104104
fails += 1

setup.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,19 @@ install_requires =
4040
pkginfo
4141
pre-commit
4242
pypiserver
43-
pytest-check-links>=0.5
43+
pytest-check-links>=0.7
4444
requests
4545
requests_cache
4646
tbump~=6.7
4747
toml~=0.10
4848
twine
4949

5050
[options.extras_require]
51-
test = coverage; pytest; pytest-cov; pytest-mock
51+
test =
52+
coverage
53+
pytest>=7.0
54+
pytest-cov
55+
pytest-mock
5256

5357
[options.entry_points]
5458
console_scripts =

0 commit comments

Comments
 (0)