LibCST/libcst/helpers
Amethyst Reese f9536b522f
Pass root path to FullyQualifiedNameProvider (#867)
This allows FullyQualifiedNameProvider to work with absolute paths,
rather than assuming all paths given will be relative to the current
directory. This enables tools like Fixit to provide a root path, and
have the FullyQualifiedNameProvider correctly scope the final results
relative to that root path.

This does require that both the root path and the given file paths
match the other as relative or absolute, due to the
`calculate_module_and_package` helper comparing file paths relative
to the root path, but this seems like a reasonable tradeoff, and
unlikely to cause a problem in normal use cases.
2023-02-22 14:36:10 -08:00
..
tests Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module (#684) 2022-05-11 07:42:37 -04:00
__init__.py Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module (#684) 2022-05-11 07:42:37 -04:00
_template.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
common.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
expression.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
module.py Pass root path to FullyQualifiedNameProvider (#867) 2023-02-22 14:36:10 -08:00