Public bug reported:

Using mypy 0.670 installed via pip.
I created a file~/.config/mypy/config/mypy.ini containing a [mypy] section and 
one setting (mypy_path).

If I use python3 -m mypy [module to check]
I get an error:

[~]/.config/mypy/config: No [mypy] section in config file

Whereas if I use python3 -m mypy [module to check] --config-file 
~/.config/mypy/config/mypy.ini
there is no error message and the config file is processed.

Expected behaviour:
No error message if the file contains a [mypy] section

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: mypy (not installed)
ProcVersionSignature: Ubuntu 5.0.0-25.26-generic 5.0.18
Uname: Linux 5.0.0-25-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 26 12:07:42 2019
SourcePackage: mypy
UpgradeStatus: Upgraded to disco on 2019-04-25 (123 days ago)

** Affects: mypy (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug disco

** Attachment added: "mypy.ini file"
   https://bugs.launchpad.net/bugs/1841426/+attachment/5284687/+files/mypy.ini

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1841426

Title:
  mypy erroneously reports no [mypy] section in config file unless
  --config-file is specified

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mypy/+bug/1841426/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to