We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b6c85 commit a2ebf80Copy full SHA for a2ebf80
mypy/options.py
@@ -131,7 +131,7 @@ def __init__(self) -> None:
131
self.scripts_are_modules = False
132
133
# Config file name
134
- self.config_file = 'setup.cfg' # type: Optional[str]
+ self.config_file = None # type: Optional[str]
135
136
# Write junit.xml to given file
137
self.junit_xml = None # type: Optional[str]
mypy/test/testargs.py
@@ -14,4 +14,6 @@ class ArgSuite(Suite):
14
def test_coherence(self) -> None:
15
options = Options()
16
_, parsed_options = process_options([], require_targets=False)
17
+ # FIX: test this too. Requires changing working dir to avoid finding 'setup.cfg'
18
+ options.config_file = parsed_options.config_file
19
assert_equal(options, parsed_options)
0 commit comments