Title: [1.15 regression] mypy does not use $HOME/.mypy.ini, if .git directory exists · Issue #18650 · python/mypy · GitHub
Open Graph Title: [1.15 regression] mypy does not use $HOME/.mypy.ini, if .git directory exists · Issue #18650 · python/mypy
X Title: [1.15 regression] mypy does not use $HOME/.mypy.ini, if .git directory exists · Issue #18650 · python/mypy
Description: After upgrading to mypy 1.15.0, I found mypy no longer reads configuration from ~/.mypy.ini. This seems to happen if project directory has directory .git, even if no other configuration is provided, for instance in pyproject.toml. For te...
Open Graph Description: After upgrading to mypy 1.15.0, I found mypy no longer reads configuration from ~/.mypy.ini. This seems to happen if project directory has directory .git, even if no other configuration is provided...
X Description: After upgrading to mypy 1.15.0, I found mypy no longer reads configuration from ~/.mypy.ini. This seems to happen if project directory has directory .git, even if no other configuration is provided...
Opengraph URL: https://github.com/python/mypy/issues/18650
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[1.15 regression] mypy does not use $HOME/.mypy.ini, if .git directory exists","articleBody":"After upgrading to mypy 1.15.0, I found mypy no longer reads configuration from ~/.mypy.ini. This seems to happen if project directory has directory .git, even if no other configuration is provided, for instance in pyproject.toml.\n\nFor testing purposes, I created faulty configuration.\n\n~/.mypy.ini:\n```\n[mypy]\nincorrect = True\n```\n\nWith mypy 1.14.0:\n```\nsuonpaa@deb:~/src/test$ mypy --version\nmypy 1.14.0 (compiled: yes)\nsuonpaa@deb:~/src/test$ mypy .\n/home/suonpaa/.mypy.ini: [mypy]: Unrecognized option: incorrect = True\nSuccess: no issues found in 1 source file\nsuonpaa@deb:~/src/test$ mkdir .git\nsuonpaa@deb:~/src/test$ mypy .\n/home/suonpaa/.mypy.ini: [mypy]: Unrecognized option: incorrect = True\nSuccess: no issues found in 1 source file\n```\n\nWith mypy 1.15.0:\n```\nsuonpaa@deb:~/src/test$ mypy --version\nmypy 1.15.0 (compiled: yes)\nsuonpaa@deb:~/src/test$ mypy .\n../../.mypy.ini: [mypy]: Unrecognized option: incorrect = True\nSuccess: no issues found in 1 source file\nsuonpaa@deb:~/src/test$ mkdir .git\nsuonpaa@deb:~/src/test$ mypy .\nSuccess: no issues found in 1 source file\nsuonpaa@deb:~/src/test$\n```\n\nJust to be clear: no mypy.ini or pyproject.toml in this directory or in its parents.\n\nI would expect this change being related to https://github.com/python/mypy/pull/16965 and / or https://github.com/python/mypy/pull/18482.\n","author":{"url":"https://github.com/suonpaa","@type":"Person","name":"suonpaa"},"datePublished":"2025-02-10T10:38:04Z","url":"https://github.com/python/mypy/issues/18650"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc9619e0-1801-1779-0939-70a061558b0d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C2E:194E10:17477F5:1F5730C:6AFFEAFD |
| html-safe-nonce | 14c8f16bc5fbae3decca954e7215777b1a300e886e046ece705a05c84e688272 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzJFOjE5NEUxMDoxNzQ3N0Y1OjFGNTczMEM6NkFGRkVBRkQiLCJ2aXNpdG9yX2lkIjoiNjUxODE4NDQ2Mzg3OTMxOTAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b0ba0d5b6844f56c311577687b51b7a534a2f89d93f1b1a8efca654c6b042b2d |
| hovercard-subject-tag | issue:2842007558 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/18650/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0262756ec3353a74de25d21ba9c6498e1321f79a16a730b9a2e6f5ef74f6bb05/python/mypy/issues/18650 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0262756ec3353a74de25d21ba9c6498e1321f79a16a730b9a2e6f5ef74f6bb05/python/mypy/issues/18650 |
| og:image:alt | After upgrading to mypy 1.15.0, I found mypy no longer reads configuration from ~/.mypy.ini. This seems to happen if project directory has directory .git, even if no other configuration is provided... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | suonpaa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width