rlmgrep 0.1.17__tar.gz → 0.1.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rlmgrep
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: Grep-shaped CLI search powered by DSPy RLM
5
5
  Author: rlmgrep
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rlmgrep"
3
- version = "0.1.17"
3
+ version = "0.1.18"
4
4
  description = "Grep-shaped CLI search powered by DSPy RLM"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1,2 +1,2 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.1.17"
2
+ __version__ = "0.1.18"
@@ -347,6 +347,12 @@ def collect_candidates(
347
347
  ) -> list[Path]:
348
348
  files = collect_files(paths, recursive=recursive)
349
349
  explicit_files: set[Path] = set()
350
+ ignore_root_resolved: Path | None = None
351
+ if ignore_root is not None:
352
+ try:
353
+ ignore_root_resolved = ignore_root.resolve()
354
+ except Exception:
355
+ ignore_root_resolved = ignore_root
350
356
  for raw in paths:
351
357
  p = Path(raw)
352
358
  if p.exists() and p.is_file():
@@ -363,9 +369,9 @@ def collect_candidates(
363
369
  except ValueError:
364
370
  key = fp.as_posix()
365
371
 
366
- if ignore_spec is not None and ignore_root is not None and not is_explicit:
372
+ if ignore_spec is not None and ignore_root_resolved is not None and not is_explicit:
367
373
  try:
368
- rel = fp.relative_to(ignore_root).as_posix()
374
+ rel = fp_resolved.relative_to(ignore_root_resolved).as_posix()
369
375
  except ValueError:
370
376
  rel = None
371
377
  if rel and ignore_spec.match_file(rel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rlmgrep
3
- Version: 0.1.17
3
+ Version: 0.1.18
4
4
  Summary: Grep-shaped CLI search powered by DSPy RLM
5
5
  Author: rlmgrep
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes