ignore-python 0.3.0__tar.gz → 0.3.2__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.
@@ -181,8 +181,6 @@ jobs:
181
181
  strategy:
182
182
  matrix:
183
183
  platform:
184
- - runner: macos-13
185
- target: x86_64
186
184
  - runner: macos-14
187
185
  target: aarch64
188
186
  steps:
@@ -23,7 +23,7 @@ jobs:
23
23
  - run: python3 -m venv .venv
24
24
  - run: source .venv/bin/activate && pip install maturin pdoc
25
25
  - run: source .venv/bin/activate && maturin dev
26
- - run: source .venv/bin/activate && pdoc -o docs/ --no-show-source 'ignore' '!ignore.ignore'
26
+ - run: source .venv/bin/activate && pdoc -o docs/ --include-undocumented --no-show-source 'ignore' '!ignore.ignore'
27
27
 
28
28
  - uses: actions/upload-pages-artifact@v3
29
29
  with:
@@ -1,4 +1,5 @@
1
1
  /target
2
+ /docs
2
3
 
3
4
  # Byte-compiled / optimized / DLL files
4
5
  __pycache__/
@@ -239,7 +240,7 @@ target/
239
240
 
240
241
  # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
241
242
  # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
242
- Cargo.lock
243
+ #Cargo.lock
243
244
 
244
245
  # These are backup files generated by rustfmt
245
246
  **/*.rs.bk
@@ -4,9 +4,9 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "aho-corasick"
7
- version = "1.1.3"
7
+ version = "1.1.4"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
9
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
10
10
  dependencies = [
11
11
  "memchr",
12
12
  ]
@@ -19,9 +19,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
19
19
 
20
20
  [[package]]
21
21
  name = "bstr"
22
- version = "1.12.0"
22
+ version = "1.12.1"
23
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4"
24
+ checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
25
25
  dependencies = [
26
26
  "memchr",
27
27
  "serde",
@@ -54,9 +54,9 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
54
54
 
55
55
  [[package]]
56
56
  name = "globset"
57
- version = "0.4.16"
57
+ version = "0.4.18"
58
58
  source = "registry+https://github.com/rust-lang/crates.io-index"
59
- checksum = "54a1028dfc5f5df5da8a56a73e6c153c9a9708ec57232470703592a3f18e49f5"
59
+ checksum = "52dfc19153a48bde0cbd630453615c8151bce3a5adfac7a0aebfbf0a1e1f57e3"
60
60
  dependencies = [
61
61
  "aho-corasick",
62
62
  "bstr",
@@ -73,9 +73,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
73
73
 
74
74
  [[package]]
75
75
  name = "ignore"
76
- version = "0.4.23"
76
+ version = "0.4.25"
77
77
  source = "registry+https://github.com/rust-lang/crates.io-index"
78
- checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b"
78
+ checksum = "d3d782a365a015e0f5c04902246139249abf769125006fbe7649e2ee88169b4a"
79
79
  dependencies = [
80
80
  "crossbeam-deque",
81
81
  "globset",
@@ -89,7 +89,7 @@ dependencies = [
89
89
 
90
90
  [[package]]
91
91
  name = "ignore-python"
92
- version = "0.3.0"
92
+ version = "0.3.2"
93
93
  dependencies = [
94
94
  "ignore",
95
95
  "pyo3",
@@ -97,27 +97,30 @@ dependencies = [
97
97
 
98
98
  [[package]]
99
99
  name = "indoc"
100
- version = "2.0.6"
100
+ version = "2.0.7"
101
101
  source = "registry+https://github.com/rust-lang/crates.io-index"
102
- checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd"
102
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
103
+ dependencies = [
104
+ "rustversion",
105
+ ]
103
106
 
104
107
  [[package]]
105
108
  name = "libc"
106
- version = "0.2.174"
109
+ version = "0.2.180"
107
110
  source = "registry+https://github.com/rust-lang/crates.io-index"
108
- checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
111
+ checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
109
112
 
110
113
  [[package]]
111
114
  name = "log"
112
- version = "0.4.27"
115
+ version = "0.4.29"
113
116
  source = "registry+https://github.com/rust-lang/crates.io-index"
114
- checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
117
+ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
115
118
 
116
119
  [[package]]
117
120
  name = "memchr"
118
- version = "2.7.5"
121
+ version = "2.8.0"
119
122
  source = "registry+https://github.com/rust-lang/crates.io-index"
120
- checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
123
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
121
124
 
122
125
  [[package]]
123
126
  name = "memoffset"
@@ -136,15 +139,15 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
136
139
 
137
140
  [[package]]
138
141
  name = "portable-atomic"
139
- version = "1.11.1"
142
+ version = "1.13.1"
140
143
  source = "registry+https://github.com/rust-lang/crates.io-index"
141
- checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
144
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
142
145
 
143
146
  [[package]]
144
147
  name = "proc-macro2"
145
- version = "1.0.95"
148
+ version = "1.0.106"
146
149
  source = "registry+https://github.com/rust-lang/crates.io-index"
147
- checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
150
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
148
151
  dependencies = [
149
152
  "unicode-ident",
150
153
  ]
@@ -213,18 +216,18 @@ dependencies = [
213
216
 
214
217
  [[package]]
215
218
  name = "quote"
216
- version = "1.0.40"
219
+ version = "1.0.44"
217
220
  source = "registry+https://github.com/rust-lang/crates.io-index"
218
- checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
221
+ checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
219
222
  dependencies = [
220
223
  "proc-macro2",
221
224
  ]
222
225
 
223
226
  [[package]]
224
227
  name = "regex-automata"
225
- version = "0.4.9"
228
+ version = "0.4.14"
226
229
  source = "registry+https://github.com/rust-lang/crates.io-index"
227
- checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
230
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
228
231
  dependencies = [
229
232
  "aho-corasick",
230
233
  "memchr",
@@ -233,9 +236,15 @@ dependencies = [
233
236
 
234
237
  [[package]]
235
238
  name = "regex-syntax"
236
- version = "0.8.5"
239
+ version = "0.8.9"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
242
+
243
+ [[package]]
244
+ name = "rustversion"
245
+ version = "1.0.22"
237
246
  source = "registry+https://github.com/rust-lang/crates.io-index"
238
- checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
247
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
239
248
 
240
249
  [[package]]
241
250
  name = "same-file"
@@ -248,18 +257,27 @@ dependencies = [
248
257
 
249
258
  [[package]]
250
259
  name = "serde"
251
- version = "1.0.219"
260
+ version = "1.0.228"
261
+ source = "registry+https://github.com/rust-lang/crates.io-index"
262
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
263
+ dependencies = [
264
+ "serde_core",
265
+ ]
266
+
267
+ [[package]]
268
+ name = "serde_core"
269
+ version = "1.0.228"
252
270
  source = "registry+https://github.com/rust-lang/crates.io-index"
253
- checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
271
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
254
272
  dependencies = [
255
273
  "serde_derive",
256
274
  ]
257
275
 
258
276
  [[package]]
259
277
  name = "serde_derive"
260
- version = "1.0.219"
278
+ version = "1.0.228"
261
279
  source = "registry+https://github.com/rust-lang/crates.io-index"
262
- checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
280
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
263
281
  dependencies = [
264
282
  "proc-macro2",
265
283
  "quote",
@@ -268,9 +286,9 @@ dependencies = [
268
286
 
269
287
  [[package]]
270
288
  name = "syn"
271
- version = "2.0.104"
289
+ version = "2.0.114"
272
290
  source = "registry+https://github.com/rust-lang/crates.io-index"
273
- checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
291
+ checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
274
292
  dependencies = [
275
293
  "proc-macro2",
276
294
  "quote",
@@ -279,15 +297,15 @@ dependencies = [
279
297
 
280
298
  [[package]]
281
299
  name = "target-lexicon"
282
- version = "0.13.2"
300
+ version = "0.13.4"
283
301
  source = "registry+https://github.com/rust-lang/crates.io-index"
284
- checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
302
+ checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
285
303
 
286
304
  [[package]]
287
305
  name = "unicode-ident"
288
- version = "1.0.18"
306
+ version = "1.0.22"
289
307
  source = "registry+https://github.com/rust-lang/crates.io-index"
290
- checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
308
+ checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
291
309
 
292
310
  [[package]]
293
311
  name = "unindent"
@@ -307,82 +325,24 @@ dependencies = [
307
325
 
308
326
  [[package]]
309
327
  name = "winapi-util"
310
- version = "0.1.9"
328
+ version = "0.1.11"
311
329
  source = "registry+https://github.com/rust-lang/crates.io-index"
312
- checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
330
+ checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
313
331
  dependencies = [
314
332
  "windows-sys",
315
333
  ]
316
334
 
317
335
  [[package]]
318
- name = "windows-sys"
319
- version = "0.59.0"
336
+ name = "windows-link"
337
+ version = "0.2.1"
320
338
  source = "registry+https://github.com/rust-lang/crates.io-index"
321
- checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
322
- dependencies = [
323
- "windows-targets",
324
- ]
339
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
325
340
 
326
341
  [[package]]
327
- name = "windows-targets"
328
- version = "0.52.6"
342
+ name = "windows-sys"
343
+ version = "0.61.2"
329
344
  source = "registry+https://github.com/rust-lang/crates.io-index"
330
- checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
345
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
331
346
  dependencies = [
332
- "windows_aarch64_gnullvm",
333
- "windows_aarch64_msvc",
334
- "windows_i686_gnu",
335
- "windows_i686_gnullvm",
336
- "windows_i686_msvc",
337
- "windows_x86_64_gnu",
338
- "windows_x86_64_gnullvm",
339
- "windows_x86_64_msvc",
347
+ "windows-link",
340
348
  ]
341
-
342
- [[package]]
343
- name = "windows_aarch64_gnullvm"
344
- version = "0.52.6"
345
- source = "registry+https://github.com/rust-lang/crates.io-index"
346
- checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
347
-
348
- [[package]]
349
- name = "windows_aarch64_msvc"
350
- version = "0.52.6"
351
- source = "registry+https://github.com/rust-lang/crates.io-index"
352
- checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
353
-
354
- [[package]]
355
- name = "windows_i686_gnu"
356
- version = "0.52.6"
357
- source = "registry+https://github.com/rust-lang/crates.io-index"
358
- checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
359
-
360
- [[package]]
361
- name = "windows_i686_gnullvm"
362
- version = "0.52.6"
363
- source = "registry+https://github.com/rust-lang/crates.io-index"
364
- checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
365
-
366
- [[package]]
367
- name = "windows_i686_msvc"
368
- version = "0.52.6"
369
- source = "registry+https://github.com/rust-lang/crates.io-index"
370
- checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
371
-
372
- [[package]]
373
- name = "windows_x86_64_gnu"
374
- version = "0.52.6"
375
- source = "registry+https://github.com/rust-lang/crates.io-index"
376
- checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
377
-
378
- [[package]]
379
- name = "windows_x86_64_gnullvm"
380
- version = "0.52.6"
381
- source = "registry+https://github.com/rust-lang/crates.io-index"
382
- checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
383
-
384
- [[package]]
385
- name = "windows_x86_64_msvc"
386
- version = "0.52.6"
387
- source = "registry+https://github.com/rust-lang/crates.io-index"
388
- checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
@@ -1,7 +1,8 @@
1
1
  [package]
2
2
  name = "ignore-python"
3
- version = "0.3.0"
3
+ version = "0.3.2"
4
4
  edition = "2021"
5
+ readme = "README.md"
5
6
 
6
7
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
8
  [lib]
@@ -10,4 +11,4 @@ crate-type = ["cdylib"]
10
11
 
11
12
  [dependencies]
12
13
  pyo3 = "0.25.1"
13
- ignore-rust = { version = "0.4.23", package = "ignore" }
14
+ ignore-rust = { version = "0.4.25", package = "ignore" }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ignore-python
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -5,47 +5,40 @@ from ignore.overrides import Override
5
5
 
6
6
 
7
7
  class Error(Exception):
8
- """Represents an error that can occur during operations."""
9
-
8
+ """
9
+ Represents an error that can occur during operations.
10
+ """
10
11
 
11
12
  class IOError(Exception):
12
13
  """
13
14
  An error that occurs when doing I/O.
14
15
 
15
- Currently, the only case where this error is used is for operating
16
- system errors of type ENOENT.
16
+ Currently, the only case where this error is used is for operating system errors of type `ENOENT`.
17
17
  """
18
18
 
19
19
  errno: int
20
- """A numeric error code from the C variable errno."""
21
20
 
22
21
  filename: str
23
- """The file system path involved."""
24
-
25
22
 
26
- class DirEntry:
27
- """
28
- A directory entry.
23
+ def __init__(self, errno: int, strerror: str, filename: str) -> None: ...
29
24
 
30
- See https://docs.rs/ignore/latest/ignore/struct.DirEntry.html for
31
- more information.
32
- """
33
25
 
26
+ class DirEntry:
34
27
  def path(self) -> pathlib.Path: ...
35
28
 
36
29
  def depth(self) -> int: ...
37
30
 
38
31
 
39
- class WalkBuilder:
40
- """
41
- WalkBuilder builds a recursive directory iterator.
32
+ class Walk:
33
+ def __init__(self, path: pathlib.Path) -> None: ...
42
34
 
43
- See https://docs.rs/ignore/latest/ignore/struct.WalkBuilder.html
44
- for more information.
45
- """
35
+ def __iter__(self) -> Self: ...
36
+
37
+ def __next__(self) -> DirEntry: ...
46
38
 
47
- def __init__(self, path: pathlib.Path) -> None:
48
- """Create a new builder for a recursive directory iterator for the directory given."""
39
+
40
+ class WalkBuilder:
41
+ def __init__(self, path: pathlib.Path) -> None: ...
49
42
 
50
43
  def hidden(self, yes: bool) -> Self: ...
51
44
 
@@ -79,24 +72,3 @@ class WalkBuilder:
79
72
 
80
73
  def build(self) -> Walk: ...
81
74
 
82
-
83
- class Walk:
84
- """
85
- Walk is a recursive directory iterator over file paths in one or more directories.
86
-
87
- See https://docs.rs/ignore/latest/ignore/struct.Walk.html for more
88
- information.
89
- """
90
-
91
- def __init__(self, path: pathlib.Path) -> None:
92
- """Creates a new recursive directory iterator for the file path given."""
93
-
94
- def __iter__(self) -> Self: ...
95
-
96
- def __next__(self) -> DirEntry:
97
- """
98
- Advances the iterator and returns the next value.
99
-
100
- :raises IOError: Currently, only when a ENOENT error happens
101
- (e.g. broken symlinks when following them)
102
- """
@@ -0,0 +1,13 @@
1
+ import pathlib
2
+ from typing import Self
3
+
4
+
5
+ class Override: ...
6
+
7
+
8
+ class OverrideBuilder:
9
+ def __init__(self, path: pathlib.Path) -> None: ...
10
+
11
+ def build(self) -> Override: ...
12
+
13
+ def add(self, glob: str) -> Self: ...
@@ -73,7 +73,12 @@ impl<'py> IntoPyObject<'py> for Path<'_> {
73
73
  }
74
74
  }
75
75
 
76
- create_exception!(ignore, Error, pyo3::exceptions::PyException);
76
+ create_exception!(
77
+ ignore,
78
+ Error,
79
+ pyo3::exceptions::PyException,
80
+ "Represents an error that can occur during operations."
81
+ );
77
82
 
78
83
  #[pymodule]
79
84
  mod ignore {
@@ -83,13 +88,19 @@ mod ignore {
83
88
 
84
89
  struct ErrorWrapper(ignore_rust::Error);
85
90
 
91
+ /// An error that occurs when doing I/O.
92
+ ///
93
+ /// Currently, the only case where this error is used is for operating
94
+ /// system errors of type `ENOENT`.
86
95
  #[pyclass(extends=pyo3::exceptions::PyException)]
87
96
  struct IOError {
97
+ /// A numeric error code from the C variable errno.
88
98
  #[pyo3(get)]
89
99
  errno: u32,
90
100
 
91
101
  strerror: String,
92
102
 
103
+ /// The file system path involved.
93
104
  #[pyo3(get)]
94
105
  filename: String,
95
106
  }
@@ -165,12 +176,16 @@ mod ignore {
165
176
  overrides.add_class::<overrides::Override>()
166
177
  }
167
178
 
179
+ /// A directory entry.
180
+ ///
181
+ /// See https://docs.rs/ignore/0.4.25/ignore/struct.DirEntry.html for
182
+ /// more information.
168
183
  #[pyclass]
169
184
  struct DirEntry(ignore_rust::DirEntry);
170
185
 
171
186
  #[pymethods]
172
187
  impl DirEntry {
173
- fn path(&self) -> Path {
188
+ fn path(&self) -> Path<'_> {
174
189
  Path(self.0.path())
175
190
  }
176
191
 
@@ -179,6 +194,10 @@ mod ignore {
179
194
  }
180
195
  }
181
196
 
197
+ /// WalkBuilder builds a recursive directory iterator for the directory given.
198
+ ///
199
+ /// See https://docs.rs/ignore/0.4.25/ignore/struct.WalkBuilder.html
200
+ /// for more information.
182
201
  #[pyclass]
183
202
  struct WalkBuilder(ignore_rust::WalkBuilder);
184
203
 
@@ -292,6 +311,13 @@ mod ignore {
292
311
  }
293
312
  }
294
313
 
314
+ /// Walk is a recursive directory iterator over file paths in one or more directories.
315
+ ///
316
+ /// Currently, `__next__` raises `IOError` only when a `ENOENT` error happens (e.g. broken
317
+ /// symlinks when following them).
318
+ ///
319
+ /// See https://docs.rs/ignore/0.4.25/ignore/struct.Walk.html for more
320
+ /// information.
295
321
  #[pyclass]
296
322
  struct Walk(ignore_rust::Walk);
297
323
 
@@ -316,10 +342,16 @@ mod ignore {
316
342
  mod overrides {
317
343
  use super::*;
318
344
 
345
+ /// Manages a set of overrides provided explicitly by the end user.
346
+ ///
347
+ /// See https://docs.rs/ignore/0.4.25/ignore/overrides/struct.Override.html for more information.
319
348
  #[pyclass]
320
349
  #[derive(Clone)]
321
350
  pub struct Override(pub ignore_rust::overrides::Override);
322
351
 
352
+ /// Builds a matcher for a set of glob overrides.
353
+ ///
354
+ /// See https://docs.rs/ignore/0.4.25/ignore/overrides/struct.OverrideBuilder.html for more information.
323
355
  #[pyclass]
324
356
  pub struct OverrideBuilder(ignore_rust::overrides::OverrideBuilder);
325
357
 
@@ -1,25 +0,0 @@
1
- import pathlib
2
- from typing import Self
3
-
4
-
5
- class Override:
6
- """
7
- Manages a set of overrides provided explicitly by the end user.
8
-
9
- See https://docs.rs/ignore/latest/ignore/overrides/struct.Override.html for more information.
10
- """
11
-
12
-
13
- class OverrideBuilder:
14
- """
15
- Builds a matcher for a set of glob overrides.
16
-
17
- See https://docs.rs/ignore/latest/ignore/overrides/struct.OverrideBuilder.html for more information.
18
- """
19
-
20
- def __init__(self, path: pathlib.Path) -> None:
21
- """Create a new override builder."""
22
-
23
- def build(self) -> Override: ...
24
-
25
- def add(self, glob: str) -> Self: ...
File without changes
File without changes