Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _process_file(contents):
with tempfile.NamedTemporaryFile(delete=False) as f:
f.write(contents)
options, args = pycodestyle.process_options(config_file=f.name)
os.remove(f.name)
return options, args
def _process_file(contents):
with tempfile.NamedTemporaryFile(delete=False) as f:
f.write(contents)
options, args = pycodestyle.process_options(config_file=f.name)
os.remove(f.name)
return options, args