Commit d3de4a4
authored
Add back support for warn_unused_configs (#20801)
Fixes #7998
This was disabled in incremental mode (i.e. almost always, since this is
now the default), because we didn't clone options for suppressed
dependencies, but now because we are doing this (for the purpose of
fixing other issues), there is no reason to keep this disabled (IMO this
is a nice feature to keep your config clean).
Few more things here:
* I moved the logic inside `build.build()`, first it is wrong to show
this warning in case of blocking errors (since we may not processed all
files yet), second it is easier to test.
* I am now using more standard message formatting `path: note: ...`
* I am updating couple comments I forgot to update in previous PRs
(sorry)1 parent 60f1570 commit d3de4a4
File tree
5 files changed
+74
-35
lines changed- mypy
- test-data/unit
5 files changed
+74
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| |||
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
508 | 522 | | |
509 | 523 | | |
510 | 524 | | |
| |||
3789 | 3803 | | |
3790 | 3804 | | |
3791 | 3805 | | |
3792 | | - | |
| 3806 | + | |
3793 | 3807 | | |
3794 | 3808 | | |
3795 | 3809 | | |
| |||
3839 | 3853 | | |
3840 | 3854 | | |
3841 | 3855 | | |
3842 | | - | |
3843 | | - | |
| 3856 | + | |
| 3857 | + | |
3844 | 3858 | | |
3845 | 3859 | | |
3846 | 3860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 56 | + | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 219 | | |
245 | 220 | | |
246 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7929 | 7929 | | |
7930 | 7930 | | |
7931 | 7931 | | |
| 7932 | + | |
| 7933 | + | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
| 7939 | + | |
| 7940 | + | |
| 7941 | + | |
| 7942 | + | |
| 7943 | + | |
| 7944 | + | |
| 7945 | + | |
| 7946 | + | |
| 7947 | + | |
| 7948 | + | |
| 7949 | + | |
| 7950 | + | |
| 7951 | + | |
| 7952 | + | |
| 7953 | + | |
| 7954 | + | |
| 7955 | + | |
| 7956 | + | |
| 7957 | + | |
| 7958 | + | |
| 7959 | + | |
| 7960 | + | |
| 7961 | + | |
| 7962 | + | |
| 7963 | + | |
| 7964 | + | |
| 7965 | + | |
| 7966 | + | |
| 7967 | + | |
| 7968 | + | |
| 7969 | + | |
| 7970 | + | |
| 7971 | + | |
| 7972 | + | |
| 7973 | + | |
| 7974 | + | |
| 7975 | + | |
| 7976 | + | |
| 7977 | + | |
| 7978 | + | |
| 7979 | + | |
| 7980 | + | |
| 7981 | + | |
| 7982 | + | |
| 7983 | + | |
7932 | 7984 | | |
7933 | 7985 | | |
7934 | 7986 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
539 | 538 | | |
540 | 539 | | |
541 | 540 | | |
| |||
555 | 554 | | |
556 | 555 | | |
557 | 556 | | |
558 | | - | |
| 557 | + | |
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
| |||
0 commit comments