File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -135,14 +135,22 @@ def _determine_py_coverage_modules(
135135 py_undoc [mod_name ] = {'error' : err }
136136 continue
137137
138- # if there are additional modules then we warn (but still scan)
139- additional_modules = set (seen_modules ) - modules
140- if additional_modules :
138+ # if there are additional modules then we warn but continue scanning
139+ if additional_modules := set (seen_modules ) - modules :
141140 logger .warning (
142141 __ ('the following modules are documented but were not specified '
143142 'in coverage_modules: %s' ),
144143 ', ' .join (additional_modules ),
145144 )
145+
146+ # likewise, if there are missing modules we warn but continue scanning
147+ if additional_modules := modules - set (seen_modules ):
148+ logger .warning (
149+ __ ('the following modules are specified in coverage_modules '
150+ 'but were not documented' ),
151+ ', ' .join (additional_modules ),
152+ )
153+
146154 return sorted (modules )
147155
148156
You can’t perform that action at this time.
0 commit comments