Title: mypy evaluates `files` config property relative to current working directory iso config file location · Issue #18809 · python/mypy · GitHub
Open Graph Title: mypy evaluates `files` config property relative to current working directory iso config file location · Issue #18809 · python/mypy
X Title: mypy evaluates `files` config property relative to current working directory iso config file location · Issue #18809 · python/mypy
Description: Bug Report In #18482 support was added for walking up the file system to find the appropriate config file. I wanted to try this out, but ran into a problem. The config file might contain a section files (and also exclude). IMO the paths ...
Open Graph Description: Bug Report In #18482 support was added for walking up the file system to find the appropriate config file. I wanted to try this out, but ran into a problem. The config file might contain a section ...
X Description: Bug Report In #18482 support was added for walking up the file system to find the appropriate config file. I wanted to try this out, but ran into a problem. The config file might contain a section ...
Opengraph URL: https://github.com/python/mypy/issues/18809
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy evaluates `files` config property relative to current working directory iso config file location","articleBody":"\u003c!--\nIf you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form instead.\nPlease consider:\n\n- checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html\n- searching our issue tracker: https://github.com/python/mypy/issues to see if it's already been reported\n- asking on gitter chat: https://gitter.im/python/typing\n-->\n\n**Bug Report**\n\nIn https://github.com/python/mypy/pull/18482 support was added for walking up the file system to find the appropriate config file. I wanted to try this out, but ran into a problem.\n\nThe config file might contain a section `files` (and also `exclude`).\nIMO the paths specified there should be considered relative to the location of the config file.\n\nInstead mypy considers them relative to the current working directory (where mypy was invoked).\nIn order for the 'walk up' functionality to be useful the paths should be interpreted as relative to the config file location.\n\n**Actual Behavior**\n\n```\n$ mypy\nmypy: can't read file 'tests': No such file or directory\n```\n\n\n**Your Environment**\n\n\n- Mypy version used: 1.15\n- Mypy configuration options from `mypy.ini` (and other config files): `files = tests`\n","author":{"url":"https://github.com/domsj-foodpairing","@type":"Person","name":"domsj-foodpairing"},"datePublished":"2025-03-17T11:49:09Z","url":"https://github.com/python/mypy/issues/18809"}
| 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:37fc3e86-387c-9e5f-e13b-576662b0262e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A264:1DA29F:C4CB58:FFEA76:6AFFE548 |
| html-safe-nonce | c1ede2da4d592bf3af26224b188b67b993bb1fbfb53d4b8bcfe8d9667a3c4021 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjY0OjFEQTI5RjpDNENCNTg6RkZFQTc2OjZBRkZFNTQ4IiwidmlzaXRvcl9pZCI6IjE4MTQxMTQ3ODk4MzY2NDk2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e1852e8ab654f7679b900dfac2946ecacd6ace57f5b455c9aebb9012095817a2 |
| hovercard-subject-tag | issue:2924773841 |
| 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/18809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63d575868171ca4660282a93c7f434c5cedb41cae57d62625de4bcdde91dddd6/python/mypy/issues/18809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63d575868171ca4660282a93c7f434c5cedb41cae57d62625de4bcdde91dddd6/python/mypy/issues/18809 |
| og:image:alt | Bug Report In #18482 support was added for walking up the file system to find the appropriate config file. I wanted to try this out, but ran into a problem. The config file might contain a section ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | domsj-foodpairing |
| 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