Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork944
Commit61273aa
committed
Annotate basic deprecation tests; have mypy scan it
- Add type hints to test/deprecation/basic.py. As its module docstring (already) notes, that test module does not contain code where it is specifically important that it be type checked to verify important properties of the code under test. However, other test.deprecation.* modules will, and it is much more convenient to be able to scan the whole directory than the directory except for one file. (Less importantly, for the deprecation tests to be easily readable as a coherent whole, it makes sense that all, not just most, would have annotations.)- Configure mypy in pyproject.toml so it can be run without arguments (mypy errors when run that way unless configured), where the effect is to scan the git/ directory, as was commonly done before, as well as the test/deprecation/ directory.- Change the CI test workflow, as well as tox.ini, to run mypy with no arguments instead of passing `-p git`, so that it will scan both the git package as it had before and the test.deprecation package (due to the new pyproject.toml configuration).- Change the readme to recommend running it that way, too.1 parentb8ce990 commit61273aa
File tree
5 files changed
+30
-17
lines changed- .github/workflows
- test/deprecation
5 files changed
+30
-17
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
| 170 | + | |
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
|
Lines changed: 26 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 |
| |
29 | 41 |
| |
30 |
| - | |
| 42 | + | |
31 | 43 |
| |
32 | 44 |
| |
33 | 45 |
| |
| |||
36 | 48 |
| |
37 | 49 |
| |
38 | 50 |
| |
39 |
| - | |
| 51 | + | |
40 | 52 |
| |
41 | 53 |
| |
42 | 54 |
| |
| |||
46 | 58 |
| |
47 | 59 |
| |
48 | 60 |
| |
49 |
| - | |
| 61 | + | |
50 | 62 |
| |
51 | 63 |
| |
52 | 64 |
| |
53 | 65 |
| |
54 | 66 |
| |
55 |
| - | |
| 67 | + | |
56 | 68 |
| |
57 | 69 |
| |
58 | 70 |
| |
59 | 71 |
| |
60 | 72 |
| |
61 |
| - | |
| 73 | + | |
62 | 74 |
| |
63 | 75 |
| |
64 | 76 |
| |
65 | 77 |
| |
66 | 78 |
| |
67 |
| - | |
| 79 | + | |
68 | 80 |
| |
69 | 81 |
| |
70 | 82 |
| |
71 | 83 |
| |
72 | 84 |
| |
73 |
| - | |
| 85 | + | |
74 | 86 |
| |
75 | 87 |
| |
76 | 88 |
| |
77 | 89 |
| |
78 | 90 |
| |
79 |
| - | |
| 91 | + | |
80 | 92 |
| |
81 | 93 |
| |
82 | 94 |
| |
83 | 95 |
| |
84 | 96 |
| |
85 |
| - | |
| 97 | + | |
86 | 98 |
| |
87 | 99 |
| |
88 | 100 |
| |
89 | 101 |
| |
90 | 102 |
| |
91 |
| - | |
| 103 | + | |
92 | 104 |
| |
93 | 105 |
| |
94 | 106 |
| |
95 | 107 |
| |
96 | 108 |
| |
97 |
| - | |
| 109 | + | |
98 | 110 |
| |
99 | 111 |
| |
100 | 112 |
| |
101 | 113 |
| |
102 | 114 |
| |
103 |
| - | |
| 115 | + | |
104 | 116 |
| |
105 | 117 |
| |
106 | 118 |
| |
107 | 119 |
| |
108 | 120 |
| |
109 |
| - | |
| 121 | + | |
110 | 122 |
| |
111 | 123 |
| |
112 | 124 |
| |
113 | 125 |
| |
114 | 126 |
| |
115 | 127 |
| |
116 | 128 |
| |
117 |
| - | |
| 129 | + | |
118 | 130 |
| |
119 | 131 |
| |
120 | 132 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
0 commit comments
Comments
(0)