Generate all significant file paths, starting from the given path.
Finds the project root and any associated gitignore. Filters any paths that match a gitignore pattern. Recurses into subdirectories, and otherwise only includes files that match the
Returns a generator that yields each significant file as the tree is walked.
Run a given function once for each path, using a process pool for concurrency.
For each path given, func will be called with path as the only argument. To pass any other positional or keyword arguments, use functools.partial.
Results from each path will be returned as a dictionary mapping path to result.
Uses a process pool with “spawned” processes that share no state with the parent process, to enforce consistent behavior on Linux, macOS, and Windows, where forked processes are not possible.
Walks each path given, and runs the given function on all gathered paths.
ROOT_MARKERS= [PosixPath('pyproject.toml'), PosixPath('.git'), PosixPath('.hg')]¶
Find the project root, looking upward from the given path.
Looks through all parent paths until either the root is reached, or a directory is found that contains any of