rlmgrep 0.1.17__py3-none-any.whl → 0.1.18__py3-none-any.whl
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.
- rlmgrep/__init__.py +1 -1
- rlmgrep/ingest.py +8 -2
- {rlmgrep-0.1.17.dist-info → rlmgrep-0.1.18.dist-info}/METADATA +1 -1
- {rlmgrep-0.1.17.dist-info → rlmgrep-0.1.18.dist-info}/RECORD +7 -7
- {rlmgrep-0.1.17.dist-info → rlmgrep-0.1.18.dist-info}/WHEEL +0 -0
- {rlmgrep-0.1.17.dist-info → rlmgrep-0.1.18.dist-info}/entry_points.txt +0 -0
- {rlmgrep-0.1.17.dist-info → rlmgrep-0.1.18.dist-info}/top_level.txt +0 -0
rlmgrep/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__all__ = ["__version__"]
|
|
2
|
-
__version__ = "0.1.
|
|
2
|
+
__version__ = "0.1.18"
|
rlmgrep/ingest.py
CHANGED
|
@@ -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
|
|
372
|
+
if ignore_spec is not None and ignore_root_resolved is not None and not is_explicit:
|
|
367
373
|
try:
|
|
368
|
-
rel =
|
|
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,14 +1,14 @@
|
|
|
1
|
-
rlmgrep/__init__.py,sha256=
|
|
1
|
+
rlmgrep/__init__.py,sha256=4P4PJ704cude_tDknqGG0LoqrFcJS7Bpzjp_q0uTPNg,49
|
|
2
2
|
rlmgrep/__main__.py,sha256=MHKZ_ae3fSLGTLUUMOx15fWdeOnJSHhq-zslRP5F5Lc,79
|
|
3
3
|
rlmgrep/cli.py,sha256=DbA8WDqkUrWYV5lItA_mlYB9v0H9ZOPm8JjZLIX1Y7E,23291
|
|
4
4
|
rlmgrep/config.py,sha256=u1iz-nI8dj-dZETbpIki3RQefHJEyi5oE5zE4_IR8kg,2399
|
|
5
5
|
rlmgrep/file_map.py,sha256=x2Ri1wzK8_87GUorsAV01K_nYLZcv30yIquDeTCcdEw,876
|
|
6
|
-
rlmgrep/ingest.py,sha256=
|
|
6
|
+
rlmgrep/ingest.py,sha256=3qPJ-FZfWpxwTJBSj_EPWNDCdDDgNgZIGyCTXyXOZfk,12891
|
|
7
7
|
rlmgrep/interpreter.py,sha256=s_nMRxLlAU9C0JmUzUBW5NbVbuH67doVWF54K54STlA,2478
|
|
8
8
|
rlmgrep/render.py,sha256=mCTT6yuKNv7HJ46LzOyLkCbyBedCWSNd7UeubyLXcyM,3356
|
|
9
9
|
rlmgrep/rlm.py,sha256=i3rCTp8OABByF60Un5gO7265gaW4spwU0OFKIz4surg,5750
|
|
10
|
-
rlmgrep-0.1.
|
|
11
|
-
rlmgrep-0.1.
|
|
12
|
-
rlmgrep-0.1.
|
|
13
|
-
rlmgrep-0.1.
|
|
14
|
-
rlmgrep-0.1.
|
|
10
|
+
rlmgrep-0.1.18.dist-info/METADATA,sha256=6doosFWzRkxGxbKynYyUMMmF6ih0rs8BWGdi0BMeCFs,7969
|
|
11
|
+
rlmgrep-0.1.18.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
12
|
+
rlmgrep-0.1.18.dist-info/entry_points.txt,sha256=UV6QkEbkwBO1JJ53mm84_n35tVyOczPvOQ14ga7vrCI,45
|
|
13
|
+
rlmgrep-0.1.18.dist-info/top_level.txt,sha256=gTujSRsO58c80eN7aRH2cfe51FHxx8LJ1w1Y2YlHti0,8
|
|
14
|
+
rlmgrep-0.1.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|