Skip to content

Commit

Permalink
Merge 2bdff80 into 7e4f949
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Oct 19, 2021
2 parents 7e4f949 + 2bdff80 commit dc9498f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pytest_filecov/plugin/gitlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
import subprocess



class GitLsFiles:
def __init__(self, dirs: Sequence[str]):
self.dirs = dirs

def __iter__(self) -> Iterable[str]:
cmd = ['git', 'ls-files', '-z']
cmd = ["git", "ls-files", "-z"]
cmd.extend(self.dirs)
proc = subprocess.run(cmd, stdout=subprocess.PIPE, check=True)
names = proc.stdout.split(b'\x00')
names = proc.stdout.split(b"\x00")
return sorted([name.decode() for name in names if name]).__iter__()
5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}

0 comments on commit dc9498f

Please sign in to comment.