Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main() -> None:
opts = parse_arguments()
output_file = os.path.join(opts.output_dir,
'{}.sql'.format(opts.database))
for path in glob(os.path.join(opts.output_dir, '*.sql')):
os.remove(path)
dump_database(opts.database, output_file)
split_sql_file(output_file)
os.remove(output_file)
commit_database(opts.output_dir, opts.remote)