isort --atomic .

Category: Python & pip

isort --atomic .

Only write files if the result is syntactically valid

Only writes changes if the resulting file is syntactically valid Python — safety check.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.