rlmgrep 0.1.15__tar.gz → 0.1.16__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.15
3
+ Version: 0.1.16
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.15"
3
+ version = "0.1.16"
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.15"
2
+ __version__ = "0.1.16"
@@ -220,16 +220,32 @@ def build_ignore_spec(
220
220
  escaped = True
221
221
  if not escaped and line.startswith("#"):
222
222
  continue
223
+
223
224
  negated = False
224
225
  if not escaped and line.startswith("!"):
225
226
  negated = True
226
227
  line = line[1:]
227
228
  if not line:
228
229
  continue
230
+
231
+ anchored = False
229
232
  if line.startswith("/"):
233
+ anchored = True
230
234
  line = line[1:]
235
+ if not line:
236
+ continue
237
+
231
238
  if rel_dir:
232
- line = f"{rel_dir}/{line}"
239
+ if anchored:
240
+ line = f"{rel_dir}/{line}"
241
+ elif "/" in line:
242
+ line = f"{rel_dir}/{line}"
243
+ else:
244
+ line = f"{rel_dir}/**/{line}"
245
+ else:
246
+ if anchored:
247
+ line = f"/{line}"
248
+
233
249
  if negated:
234
250
  line = "!" + line
235
251
  patterns.append(line)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rlmgrep
3
- Version: 0.1.15
3
+ Version: 0.1.16
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