check in the current working directory for configuration files

def detect_config(self):
        """check in the current working directory for configuration files"""
        default_files = ("config.json", "config.yml")
        for file_ in default_files:
            if os.path.exists(file_):
                return file_