Title: exclude key in mypy.ini as a single regex doesn't scale for larger code bases · Issue #10310 · python/mypy · GitHub
Open Graph Title: exclude key in mypy.ini as a single regex doesn't scale for larger code bases · Issue #10310 · python/mypy
X Title: exclude key in mypy.ini as a single regex doesn't scale for larger code bases · Issue #10310 · python/mypy
Description: Feature I'd like the exclude = in mypy.ini to have a saner way to specify a lot of paths that one huge one-line regex. This is a follow-up to #9992 (comment) When trying to use exclude (necessary because mypy 0.800 became much more aggre...
Open Graph Description: Feature I'd like the exclude = in mypy.ini to have a saner way to specify a lot of paths that one huge one-line regex. This is a follow-up to #9992 (comment) When trying to use exclude (necessary b...
X Description: Feature I'd like the exclude = in mypy.ini to have a saner way to specify a lot of paths that one huge one-line regex. This is a follow-up to #9992 (comment) When trying to use exclude (necessa...
Opengraph URL: https://github.com/python/mypy/issues/10310
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"exclude key in mypy.ini as a single regex doesn't scale for larger code bases","articleBody":"**Feature**\r\n\r\nI'd like the `exclude =` in `mypy.ini` to have a saner way to specify a lot of paths that one huge one-line regex.\r\n\r\nThis is a follow-up to https://github.com/python/mypy/pull/9992#issuecomment-816985175\r\n\r\nWhen trying to use `exclude` (necessary because mypy 0.800 became much more aggressive in including paths by default) I ended up with something like:\r\n```\r\nfiles =\r\n torch,\r\n caffe2,\r\n test/test_bundled_images.py,\r\n test/test_bundled_inputs.py,\r\n test/test_complex.py,\r\n ... \u003cmany more paths here>\r\n\r\n#\r\n# `exclude` is a regex, not a list of paths like `files` (sigh)\r\n#\r\nexclude = torch/include/|torch/csrc/|torch/distributed/elastic/agent/server/api.py\r\n```\r\nBoth the `files` and `exclude` list are likely to grow over time. I don't have a strong preference on how `exclude` should work exactly, any pattern that allows breaking the regex into one line per pattern will be fine. E.g.:\r\n```\r\nexclude =\r\n pattern1|\r\n pattern2|\r\n pattern3|\r\n```\r\nUsing `|` or some character other than a comma to indicate that it does not work like `files =` seems like a good idea.","author":{"url":"https://github.com/rgommers","@type":"Person","name":"rgommers"},"datePublished":"2021-04-11T19:36:22Z","url":"https://github.com/python/mypy/issues/10310"}
| 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:5b329ce2-92b9-27cf-b22f-0068a7d13ea0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8674:29A20E:2228322:2E6CEF0:6B002578 |
| html-safe-nonce | e3689de16ac00ee95f84954a3d4528f8301d7879449fe706995e573009bd3fde |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njc0OjI5QTIwRToyMjI4MzIyOjJFNkNFRjA6NkIwMDI1NzgiLCJ2aXNpdG9yX2lkIjoiMzU0OTIyNjgwNDcyNjIxMTk2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e1b3865db02cc1bfd27eea7200979168909be2836937db789da85287166c611e |
| hovercard-subject-tag | issue:855389825 |
| 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/10310/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee31957165c8c8f2502198989302312e33594535e4bd62ccbea557af8581f91d/python/mypy/issues/10310 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee31957165c8c8f2502198989302312e33594535e4bd62ccbea557af8581f91d/python/mypy/issues/10310 |
| og:image:alt | Feature I'd like the exclude = in mypy.ini to have a saner way to specify a lot of paths that one huge one-line regex. This is a follow-up to #9992 (comment) When trying to use exclude (necessary b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rgommers |
| 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