This repository was archived by the owner on Nov 3, 2023. It is now read-only.
Commit 25171aa
committed
Add a match_path option for comparison against a full path.
It has been noted in issue #363 that match & match_dir are
unwieldy when attempting to match against full paths. For
unexample if you have A.py in directories B & C and you only
want to run pydocstyle on one of them.
From my own experience trying to deploy pydocstyle against a
large legacy codebase it is unworkable as it would mean the
entire codebase being converted as a big bang change. A more
nuanced approach means the codebase can be converted gradually.
This commit adds a new option, match_path, to the config &
command lines which can be used to provide more nuanced
matching. For example the following specification:
match_path = [AB]/[ab].py
D/e.py
This defines two regexes. If either match a given path,
relative to the directory specified, the file will be yielded
for comparison. The is complimentary to match & match_dir and
the three can be used together.1 parent 837c0c2 commit 25171aa
2 files changed
+98
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
152 | 161 | | |
153 | 162 | | |
154 | 163 | | |
| |||
160 | 169 | | |
161 | 170 | | |
162 | 171 | | |
| 172 | + | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
169 | 187 | | |
170 | | - | |
171 | 188 | | |
172 | 189 | | |
173 | 190 | | |
| |||
176 | 193 | | |
177 | 194 | | |
178 | 195 | | |
| 196 | + | |
179 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
180 | 201 | | |
181 | 202 | | |
182 | 203 | | |
| |||
283 | 304 | | |
284 | 305 | | |
285 | 306 | | |
286 | | - | |
287 | 307 | | |
288 | 308 | | |
289 | 309 | | |
| |||
371 | 391 | | |
372 | 392 | | |
373 | 393 | | |
374 | | - | |
| 394 | + | |
375 | 395 | | |
376 | 396 | | |
377 | 397 | | |
| |||
405 | 425 | | |
406 | 426 | | |
407 | 427 | | |
408 | | - | |
| 428 | + | |
409 | 429 | | |
410 | 430 | | |
411 | 431 | | |
| |||
721 | 741 | | |
722 | 742 | | |
723 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
724 | 754 | | |
725 | 755 | | |
726 | 756 | | |
| |||
743 | 773 | | |
744 | 774 | | |
745 | 775 | | |
746 | | - | |
| 776 | + | |
747 | 777 | | |
748 | 778 | | |
749 | 779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1311 | 1374 | | |
1312 | 1375 | | |
1313 | 1376 | | |
| |||
0 commit comments