We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--diff
In #4, we added the --diff flag to mirror black --diff.
black --diff
However, I now notice that while Black outputs paths relative to the current working directory, Darker now outputs absolute paths.
This might lead to incompatibilities with some tools which expect relative paths.
FYI @Carreau
$ black --check --diff --quiet src/darker/tests/test_black_diff.py --- src/darker/tests/test_black_diff.py 2020-08-04 16:51:03.924124 +0000 +++ src/darker/tests/test_black_diff.py 2020-08-04 16:56:28.621010 +0000 @@ -1,10 +1,10 @@ from pathlib import Path import pytest -from darker.black_diff import BlackArgs, read_black_config, run_black +from darker.black_diff import BlackArgs, read_black_config, run_black @pytest.mark.parametrize( "config_path, config_lines, expect", [
$ darker --diff --quiet src/darker/tests/test_black_diff.py --- /home/akaihola/prg/darker/src/darker/tests/test_black_diff.py +++ /home/akaihola/prg/darker/src/darker/tests/test_black_diff.py @@ -2,7 +2,7 @@ import pytest -from darker.black_diff import BlackArgs, read_black_config, run_black +from darker.black_diff import BlackArgs, read_black_config, run_black @pytest.mark.parametrize(
The text was updated successfully, but these errors were encountered:
Paths from --diff now relative to workdir (#34)
337d57d
This is now similar to `black --diff`. Fixes #34.
4abf4bb
Merge pull request #37 from akaihola/relative-diff-paths
1e49d96
Paths from `--diff` now relative to workdir (#34)
akaihola
Successfully merging a pull request may close this issue.
In #4, we added the
--diff
flag to mirrorblack --diff
.However, I now notice that while Black outputs paths relative to the current working directory, Darker now outputs absolute paths.
This might lead to incompatibilities with some tools which expect relative paths.
FYI @Carreau
The text was updated successfully, but these errors were encountered: