Title: Exclude patterns don't work for the nested modules · Issue #10820 · python/mypy · GitHub
Open Graph Title: Exclude patterns don't work for the nested modules · Issue #10820 · python/mypy
X Title: Exclude patterns don't work for the nested modules · Issue #10820 · python/mypy
Description: My project directory structure is something like: . ├── feecc_spoke │ ├── __init__.py ... │ └── waveshare_epd ... │ ├── epd2in13d.py │ ├── epdconfig.py │ └── __init__.py ... ├── main.py └── pyproject.toml "waveshare_epd" is a third party...
Open Graph Description: My project directory structure is something like: . ├── feecc_spoke │ ├── __init__.py ... │ └── waveshare_epd ... │ ├── epd2in13d.py │ ├── epdconfig.py │ └── __init__.py ... ├── main.py └── pyproje...
X Description: My project directory structure is something like: . ├── feecc_spoke │ ├── __init__.py ... │ └── waveshare_epd ... │ ├── epd2in13d.py │ ├── epdconfig.py │ └── __init__.py ... ├── main.py └── pyproje...
Opengraph URL: https://github.com/python/mypy/issues/10820
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exclude patterns don't work for the nested modules","articleBody":"My [project](https://github.com/NETMVAS/feecc-spoke-daemon) directory structure is something like:\r\n```\r\n.\r\n├── feecc_spoke\r\n│ ├── __init__.py\r\n...\r\n│ └── waveshare_epd\r\n...\r\n│ ├── epd2in13d.py\r\n│ ├── epdconfig.py\r\n│ └── __init__.py\r\n...\r\n├── main.py\r\n└── pyproject.toml\r\n```\r\n\r\n\"[waveshare_epd](https://github.com/waveshare/e-Paper)\" is a third party module which is not published on PyPi, so I had to include it's files directly into the project folder. However, it generates a lot of errors which ruin my CI so I want to exclude those files from checking.\r\n\r\nFor that I use the [\"exclude\"](https://mypy.readthedocs.io/en/stable/config_file.html?highlight=exclude#confval-exclude) option in my configuration file (pyproject.toml).\r\n\r\nThe issue is that none of the regular expressions I've tried putting into the exclude option actually work.\r\n\r\nI have tried: `\"waveshare_epd\", \".*/waveshare_epd/\", \"feecc_spoke/waveshare_epd/.*\", \".*epd.*\", \"[epd2in13d\\.py|epdconfig\\.py]\"` and many more patterns.\r\n\r\nI have tried putting in the patterns via: command line arguments, mypy.ini file, pyproject.toml file. None of the options had any effect - the files still get included into the report.\r\n\r\nMy current configuration (a section in the pyproject.toml file) looks like this:\r\n```\r\n[tool.mypy]\r\nstrict = true\r\nexclude = \".*epd.*\"\r\nignore_missing_imports = true\r\nallow_subclassing_any = true\r\nallow_untyped_calls = true\r\n```\r\n\r\nAt this point I have spent hours at this issue over the course of multiple days and still can't find any fix for the problem.\r\n\r\nI am using MyPy v.0.910 inside of a Poetry generated venv with base interpreter being Python 3.9.6 on a Linux system.","author":{"url":"https://github.com/arseniiarsenii","@type":"Person","name":"arseniiarsenii"},"datePublished":"2021-07-13T21:51:05Z","url":"https://github.com/python/mypy/issues/10820"}
| 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:ababa949-7956-42e1-e8bb-43bd83d4acc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D564:3E1398:45B1E1:5D944F:6B002CD9 |
| html-safe-nonce | ba862cf64107c191a9d92f390f238400ed85b117309fbaf2c6459685a530ea65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTY0OjNFMTM5ODo0NUIxRTE6NUQ5NDRGOjZCMDAyQ0Q5IiwidmlzaXRvcl9pZCI6IjM5NTQzNjg3MDc1MjU4ODEwNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b2f35d157a922fe6fd4895b86a76e99adc338d6c3c0d11e177fdee519a836e23 |
| hovercard-subject-tag | issue:943854707 |
| 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/10820/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c9418b9e9b7369f5f6780081e6233b246121d082ba2b735a4a8122c4ae47e7ef/python/mypy/issues/10820 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c9418b9e9b7369f5f6780081e6233b246121d082ba2b735a4a8122c4ae47e7ef/python/mypy/issues/10820 |
| og:image:alt | My project directory structure is something like: . ├── feecc_spoke │ ├── __init__.py ... │ └── waveshare_epd ... │ ├── epd2in13d.py │ ├── epdconfig.py │ └── __init__.py ... ├── main.py └── pyproje... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arseniiarsenii |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width