We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GitIgnoreSpec
ts_utils.get_gitignore_spec
1 parent 2b7019b commit 09416d0Copy full SHA for 09416d0
lib/ts_utils/utils.py
@@ -204,7 +204,7 @@ def allowlists(distribution_name: str) -> list[str]:
204
@functools.cache
205
def get_gitignore_spec() -> pathspec.PathSpec:
206
with open(".gitignore", encoding="UTF-8") as f:
207
- return pathspec.PathSpec.from_lines("gitwildmatch", f.readlines())
+ return pathspec.GitIgnoreSpec.from_lines(f)
208
209
210
def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool:
0 commit comments