Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve symlinks when checking which files to format
Currently `find_project_root()` resolves symlinks, but `get_sources()` doesn't, so trying to format a file that contains symlinks will fail: ``` $ python -m black --check /home/nfvs/code/black/src/black/files.py No Python files are present to be formatted. Nothing to do 😴 ``` This commit changes methods used in `get_sources()` to, like `find_project_root()`, use `Path.resolve()` instead of `Path.absolute()`, which will follow symlinks.
- Loading branch information