Skip to content

Commit 1a1179e

Browse files
ddfishergvanrossum
authored andcommitted
Rename mypy.ini (#2278)
1 parent 74d66da commit 1a1179e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

mypy.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

mypy_strict_optional.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
; Mypy is run both with and without this config file in CI.
2+
; This allows us to make mypy strict Optional compliant over time.
3+
[mypy]
4+
strict_optional = True
5+
show_none_errors = False
6+
7+
[mypy-mypy/test/*]
8+
show_none_errors = True

runtests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def add_basic(driver: Driver) -> None:
168168

169169
def add_selftypecheck(driver: Driver) -> None:
170170
driver.add_mypy_package('package mypy', 'mypy')
171-
driver.add_mypy_package('package mypy', 'mypy', '--strict-optional')
171+
driver.add_mypy_package('package mypy', 'mypy', '--config-file', 'mypy_strict_optional.ini')
172172

173173

174174
def find_files(base: str, prefix: str = '', suffix: str = '') -> List[str]:

0 commit comments

Comments
 (0)