Title: mypy 0.990 shows no errors when passing source directory as absolute path · Issue #14042 · python/mypy · GitHub
Open Graph Title: mypy 0.990 shows no errors when passing source directory as absolute path · Issue #14042 · python/mypy
X Title: mypy 0.990 shows no errors when passing source directory as absolute path · Issue #14042 · python/mypy
Description: Bug Report I noticed that after upgrading to 0.990, mypy in djangorestframework-stubs CI no longer finds any errors. It seems this happens when the source folder is passed as a full path, instead of relative path. $PWD is the full path o...
Open Graph Description: Bug Report I noticed that after upgrading to 0.990, mypy in djangorestframework-stubs CI no longer finds any errors. It seems this happens when the source folder is passed as a full path, instead o...
X Description: Bug Report I noticed that after upgrading to 0.990, mypy in djangorestframework-stubs CI no longer finds any errors. It seems this happens when the source folder is passed as a full path, instead o...
Opengraph URL: https://github.com/python/mypy/issues/14042
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy 0.990 shows no errors when passing source directory as absolute path","articleBody":"**Bug Report**\r\n\r\nI noticed that after upgrading to 0.990, mypy in djangorestframework-stubs CI no longer finds any errors.\r\n\r\nIt seems this happens when the source folder is passed as a full path, instead of relative path. `$PWD` is the full path of the current working directory:\r\n\r\n```\r\n% mypy --config-file $PWD/mypy.ini --show-traceback --hide-error-context ./drf_source/tests |tail -n1\r\nFound 569 errors in 48 files (checked 83 source files)\r\n% mypy --config-file $PWD/mypy.ini --show-traceback --hide-error-context $PWD/drf_source/tests |tail -n1\r\nSuccess: no issues found in 83 source files\r\n```\r\n\r\n~~Maybe, just maybe, this is related to #13768?~~ EDIT: seems not to be, various `--follow-imports=` options have no effect.\r\n\r\n**To Reproduce**\r\n\r\n1. Check out https://github.com/intgr/djangorestframework-stubs branch `update-to-mypy-0.990`\r\n2. Install dependencies from `requirements.txt` in a virtualenv\r\n3. Upgrade to mypy 0.990\r\n4. Run `python scripts/typecheck_tests.py`, which populates the `drf_source` directory\r\n5. Try running the commands above\r\n\r\n**Your Environment**\r\n\r\n- Mypy version used: 0.990\r\n- Mypy configuration options from `mypy.ini` (and other config files): https://github.com/typeddjango/djangorestframework-stubs/blob/06a2f2f9f6c05a07f03bc1bd7f1b54ecfd7a3c43/mypy.ini\r\n- Python version used: 3.10.8\r\n","author":{"url":"https://github.com/intgr","@type":"Person","name":"intgr"},"datePublished":"2022-11-08T22:20:45Z","url":"https://github.com/python/mypy/issues/14042"}
| 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:9c41b9ee-b3bb-a661-96d0-a2a157af8089 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D80A:1A7566:34C5AD:47438D:6B002836 |
| html-safe-nonce | 8bd36700a2cd21436b42c523739c6f52c9e838015f842546addc343f9b2d32fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODBBOjFBNzU2NjozNEM1QUQ6NDc0MzhEOjZCMDAyODM2IiwidmlzaXRvcl9pZCI6IjU4NzkzNTcxNjY4MDQwMTkyNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e572faca200ad327d6a59d3d0f7a9d49caffe21dacbb09d067e7922d14b1a8b |
| hovercard-subject-tag | issue:1440994631 |
| 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/14042/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75bdc265c7ffbf4e5b12c831ea1236fb7baff751f4d9084553f39b92fa2f53d9/python/mypy/issues/14042 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75bdc265c7ffbf4e5b12c831ea1236fb7baff751f4d9084553f39b92fa2f53d9/python/mypy/issues/14042 |
| og:image:alt | Bug Report I noticed that after upgrading to 0.990, mypy in djangorestframework-stubs CI no longer finds any errors. It seems this happens when the source folder is passed as a full path, instead o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | intgr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width