Skip to content

Commit cba80fc

Browse files
committed
ignore package pytest config
avoids conflicts with base package test config, since we aren't running the package's tests. For example, jupyter-server has `addopts = --doctest-modules`, but check-links has `-p no:doctest`, which removes the `--doctest-modules` option.
1 parent 2970a37 commit cba80fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jupyter_releaser/lib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
5454
cmd += f"--check-links-cache-name {cache_dir}/check-release-links "
5555
# do not run doctests, since they might depend on other state.
5656
cmd += "-p no:doctest "
57+
# ignore package pytest configuration,
58+
# since we aren't running their tests
59+
cmd += "-c _IGNORE_CONFIG"
5760

5861
ignored = []
5962
for spec in ignore_glob:

0 commit comments

Comments
 (0)