File tree 1 file changed +16
-7
lines changed 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def f():
171
171
print err
172
172
173
173
[case testWarnUnusedIgnores]
174
- # cmd: mypy main.py --config-file=
174
+ # cmd: mypy main.py --config-file=pyproject.toml
175
175
[file pyproject.toml]
176
176
\[mypy]
177
177
warn_unused_ignores = true
@@ -180,15 +180,24 @@ warn_unused_ignores = true
180
180
[out]
181
181
main.py:1: error: unused 'type: ignore' comment
182
182
183
+ [case testMissingMypySection]
184
+ # cmd: mypy main.py --config-file=pyproject.toml
185
+ [file pyproject.toml]
186
+ [file main.py]
187
+ # type: ignore
188
+ [out]
189
+ pyproject.toml: No [mypy] table in config file
190
+ == Return code: 0
191
+
183
192
[case testPerFileConfigSection]
184
193
# cmd: mypy x.py y.py z.py
185
- [file mypy.ini ]
194
+ [file pyproject.toml ]
186
195
\[mypy]
187
- disallow_untyped_defs = True
188
- \[mypy- y]
189
- disallow_untyped_defs = False
190
- \[mypy- z]
191
- disallow_untyped_calls = True
196
+ disallow_untyped_defs = true
197
+ \[mypy.overrides. y]
198
+ disallow_untyped_defs = false
199
+ \[mypy.overrides. z]
200
+ disallow_untyped_calls = true
192
201
[file x.py]
193
202
def f(a):
194
203
pass
You can’t perform that action at this time.
0 commit comments