Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env python
import glob
import os
import owners
import owners_finder
owners_db = owners.Database('.', fopen=file, os_path=os.path, glob=glob.glob)
files = ['gcl.bat', '', 'tests/']
owners_f = owners_finder.OwnersFinder(files, '.', '', fopen=file, os_path=os.path, glob=glob.glob)
import pprint
pprint.pprint(owners_db.reviewers_for(['gcl.bat'], ''))
pprint.pprint(owners_db.reviewers_for([''], ''))
pprint.pprint(owners_db.files_not_covered_by(['gcl.bat'], ['']))
pprint.pprint(owners_db.all_possible_owners(files, ''))
pprint.pprint( # Note: interactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment