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.
- {ignore_python-0.3.0 → ignore_python-0.3.2}/.github/workflows/CI.yml +0 -2
- {ignore_python-0.3.0 → ignore_python-0.3.2}/.github/workflows/docs.yml +1 -1
- {ignore_python-0.3.0 → ignore_python-0.3.2}/.gitignore +2 -1
- {ignore_python-0.3.0 → ignore_python-0.3.2}/Cargo.lock +64 -104
- {ignore_python-0.3.0 → ignore_python-0.3.2}/Cargo.toml +3 -2
- {ignore_python-0.3.0 → ignore_python-0.3.2}/PKG-INFO +1 -1
- {ignore_python-0.3.0 → ignore_python-0.3.2}/ignore/__init__.pyi +14 -42
- ignore_python-0.3.2/ignore/overrides/__init__.pyi +13 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/src/lib.rs +34 -2
- ignore_python-0.3.0/ignore/overrides/__init__.pyi +0 -25
- {ignore_python-0.3.0 → ignore_python-0.3.2}/LICENSE.txt +0 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/README.md +0 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/ignore/__init__.py +0 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/ignore/overrides/py.typed +0 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/ignore/py.typed +0 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/pyproject.toml +0 -0
- {ignore_python-0.3.0 → ignore_python-0.3.2}/tests/test_root.py +0 -0
|
@@ -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.
|
|
7
|
+
version = "1.1.4"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
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.
|
|
22
|
+
version = "1.12.1"
|
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
-
checksum = "
|
|
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.
|
|
57
|
+
version = "0.4.18"
|
|
58
58
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
-
checksum = "
|
|
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.
|
|
76
|
+
version = "0.4.25"
|
|
77
77
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
78
|
-
checksum = "
|
|
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.
|
|
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.
|
|
100
|
+
version = "2.0.7"
|
|
101
101
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
-
checksum = "
|
|
102
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
103
|
+
dependencies = [
|
|
104
|
+
"rustversion",
|
|
105
|
+
]
|
|
103
106
|
|
|
104
107
|
[[package]]
|
|
105
108
|
name = "libc"
|
|
106
|
-
version = "0.2.
|
|
109
|
+
version = "0.2.180"
|
|
107
110
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
-
checksum = "
|
|
111
|
+
checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
|
|
109
112
|
|
|
110
113
|
[[package]]
|
|
111
114
|
name = "log"
|
|
112
|
-
version = "0.4.
|
|
115
|
+
version = "0.4.29"
|
|
113
116
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
-
checksum = "
|
|
117
|
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
115
118
|
|
|
116
119
|
[[package]]
|
|
117
120
|
name = "memchr"
|
|
118
|
-
version = "2.
|
|
121
|
+
version = "2.8.0"
|
|
119
122
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
-
checksum = "
|
|
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.
|
|
142
|
+
version = "1.13.1"
|
|
140
143
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
-
checksum = "
|
|
144
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
142
145
|
|
|
143
146
|
[[package]]
|
|
144
147
|
name = "proc-macro2"
|
|
145
|
-
version = "1.0.
|
|
148
|
+
version = "1.0.106"
|
|
146
149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
-
checksum = "
|
|
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.
|
|
219
|
+
version = "1.0.44"
|
|
217
220
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
218
|
-
checksum = "
|
|
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.
|
|
228
|
+
version = "0.4.14"
|
|
226
229
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
227
|
-
checksum = "
|
|
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.
|
|
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 = "
|
|
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.
|
|
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 = "
|
|
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.
|
|
278
|
+
version = "1.0.228"
|
|
261
279
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
-
checksum = "
|
|
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.
|
|
289
|
+
version = "2.0.114"
|
|
272
290
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
273
|
-
checksum = "
|
|
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.
|
|
300
|
+
version = "0.13.4"
|
|
283
301
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
284
|
-
checksum = "
|
|
302
|
+
checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
|
|
285
303
|
|
|
286
304
|
[[package]]
|
|
287
305
|
name = "unicode-ident"
|
|
288
|
-
version = "1.0.
|
|
306
|
+
version = "1.0.22"
|
|
289
307
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
-
checksum = "
|
|
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.
|
|
328
|
+
version = "0.1.11"
|
|
311
329
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
312
|
-
checksum = "
|
|
330
|
+
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
|
313
331
|
dependencies = [
|
|
314
332
|
"windows-sys",
|
|
315
333
|
]
|
|
316
334
|
|
|
317
335
|
[[package]]
|
|
318
|
-
name = "windows-
|
|
319
|
-
version = "0.
|
|
336
|
+
name = "windows-link"
|
|
337
|
+
version = "0.2.1"
|
|
320
338
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
-
checksum = "
|
|
322
|
-
dependencies = [
|
|
323
|
-
"windows-targets",
|
|
324
|
-
]
|
|
339
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
325
340
|
|
|
326
341
|
[[package]]
|
|
327
|
-
name = "windows-
|
|
328
|
-
version = "0.
|
|
342
|
+
name = "windows-sys"
|
|
343
|
+
version = "0.61.2"
|
|
329
344
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
330
|
-
checksum = "
|
|
345
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
331
346
|
dependencies = [
|
|
332
|
-
"
|
|
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.
|
|
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.
|
|
14
|
+
ignore-rust = { version = "0.4.25", package = "ignore" }
|
|
@@ -5,47 +5,40 @@ from ignore.overrides import Override
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class Error(Exception):
|
|
8
|
-
|
|
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
|
-
|
|
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
|
|
40
|
-
|
|
41
|
-
WalkBuilder builds a recursive directory iterator.
|
|
32
|
+
class Walk:
|
|
33
|
+
def __init__(self, path: pathlib.Path) -> None: ...
|
|
42
34
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
def __iter__(self) -> Self: ...
|
|
36
|
+
|
|
37
|
+
def __next__(self) -> DirEntry: ...
|
|
46
38
|
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
"""
|
|
@@ -73,7 +73,12 @@ impl<'py> IntoPyObject<'py> for Path<'_> {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
create_exception!(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|