Skip to content

Commit

Permalink
Create Way to force package even if filepath exists
Browse files Browse the repository at this point in the history
Fixes: #268
  • Loading branch information
graingert committed Sep 2, 2020
1 parent ebb6b39 commit 5043856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coverage/config.py
Expand Up @@ -195,6 +195,7 @@ def __init__(self):
self.run_include = None
self.run_omit = None
self.source = None
self.source_pkgs = []
self.timid = False
self._crash = None

Expand Down Expand Up @@ -361,6 +362,7 @@ def copy(self):
('run_include', 'run:include', 'list'),
('run_omit', 'run:omit', 'list'),
('source', 'run:source', 'list'),
('source_pkgs', 'run:source_pkgs', 'list'),
('timid', 'run:timid', 'boolean'),
('_crash', 'run:_crash'),

Expand Down
1 change: 1 addition & 0 deletions coverage/inorout.py
Expand Up @@ -132,6 +132,7 @@ def __init__(self, warn, debug):

def configure(self, config):
"""Apply the configuration to get ready for decision-time."""
self.source_pkgs.extend(config.source_pkgs)
for src in config.source or []:
if os.path.isdir(src):
self.source.append(canonical_filename(src))
Expand Down

0 comments on commit 5043856

Please sign in to comment.