Skip to content

Rename mypy.ini #2278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions mypy.ini

This file was deleted.

8 changes: 8 additions & 0 deletions mypy_strict_optional.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; Mypy is run both with and without this config file in CI.
; This allows us to make mypy strict Optional compliant over time.
[mypy]
strict_optional = True
show_none_errors = False

[mypy-mypy/test/*]
show_none_errors = True
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def add_basic(driver: Driver) -> None:

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


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