Hello, and thanks!
Testing with 0.15.0, --diff, in addition to showing the diff as expected, performs the changes on the file.
This is unexpected because:
-
the flag description is (emphasis added):
Prints a diff of all changes ssort would make to a file.
-
similar commands, including ruff format --diff, ruff check --fix --diff, yapf --diff, autopep8 --diff, and black --diff, do not change the file when --diff is passed.
Hello, and thanks!
Testing with 0.15.0,
--diff, in addition to showing the diff as expected, performs the changes on the file.This is unexpected because:
the flag description is (emphasis added):
similar commands, including
ruff format --diff,ruff check --fix --diff,yapf --diff,autopep8 --diff, andblack --diff, do not change the file when--diffis passed.