Commit 29682a8
Add .codeignore + .gitignore support, fix node_modules exclude bug
Bug: fnmatch-based exclude patterns missed root-level node_modules/
(pattern **/node_modules/** required a parent directory prefix).
Fix: Replace fnmatch with pathspec (gitwildmatch) — the same gitignore
matching engine used by pip, black, and setuptools.
New features:
- .codeignore file support (gitignore syntax, any directory)
- .gitignore auto-read from repo root
- Config exclude_patterns still work (combined with ignore files)
- pathspec added to dependencies
All 1,662 tests pass. Benchmark: 3,844 nodes, 4.9s (no regression).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5f4c37c commit 29682a8
2 files changed
Lines changed: 57 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
159 | 210 | | |
160 | 211 | | |
161 | 212 | | |
| |||
198 | 249 | | |
199 | 250 | | |
200 | 251 | | |
201 | | - | |
| 252 | + | |
202 | 253 | | |
203 | 254 | | |
204 | 255 | | |
205 | 256 | | |
206 | 257 | | |
207 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
208 | 263 | | |
209 | 264 | | |
210 | 265 | | |
| |||
217 | 272 | | |
218 | 273 | | |
219 | 274 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 275 | | |
225 | 276 | | |
226 | 277 | | |
| |||
0 commit comments