Title: mypy hook alternating between passing and failing on subsequent runs · Issue #1966 · pre-commit/pre-commit · GitHub
Open Graph Title: mypy hook alternating between passing and failing on subsequent runs · Issue #1966 · pre-commit/pre-commit
X Title: mypy hook alternating between passing and failing on subsequent runs · Issue #1966 · pre-commit/pre-commit
Description: I have some doubts that is a pre-commit bug but I am encountering some very weird behaviors from the mypy hook, which makes mypy to alternate between passing or reporting errors on the same codebase. The behavior is clear, after a failur...
Open Graph Description: I have some doubts that is a pre-commit bug but I am encountering some very weird behaviors from the mypy hook, which makes mypy to alternate between passing or reporting errors on the same codebas...
X Description: I have some doubts that is a pre-commit bug but I am encountering some very weird behaviors from the mypy hook, which makes mypy to alternate between passing or reporting errors on the same codebas...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/1966
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy hook alternating between passing and failing on subsequent runs","articleBody":"I have some doubts that is a pre-commit bug but I am encountering some very weird behaviors from the mypy hook, which makes mypy to alternate between passing or reporting errors on the same codebase. The behavior is clear, after a failure you will get a pass, and a failure if running again.\r\n\r\n```\r\nmypy.....................................................................Failed\r\n- hook id: mypy\r\n- exit code: 1\r\n- files were modified by this hook\r\n\r\n/Users/ssbarnea/.cache/pre-commit/repo6v6byaj_/py_env-python3.9/lib/python3.9/site-packages/ansiblelint/__init__.py:1: error: Skipping analyzing 'ruamel': found module but no type hints or library stubs\r\n... \u003csimilar errors>\r\nFound 138 errors in 138 files (checked 134 source files)\r\n```\r\n\r\nThat is happening on MacOS and I suspect some cached files may cause these inconsistency in execution, the even more interesting is the pattern:\r\n\r\n* execution 1: failed\r\n* execution 2: passed\r\n* execution 3: failed\r\n* execution 4: passed\r\n\r\nThe full configuration can be seen at https://github.com/ansible-community/molecule/blob/master/.pre-commit-config.yaml#L48-L60 but the pattern is very clear: swapping between the two states.\r\n\r\nAny idea what could cause this weird behavior? I mention that I did not observe this issue on CI. It may be specific to MacOS?","author":{"url":"https://github.com/ssbarnea","@type":"Person","name":"ssbarnea"},"datePublished":"2021-07-03T08:02:01Z","url":"https://github.com/pre-commit/pre-commit/issues/1966"}
| 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:c5579665-0b71-f37e-42d5-dbd157801bb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4DC:2D8919:3750E2:4A6C7C:6B0028C8 |
| html-safe-nonce | ff135957ec24d489b4fdd8c2ca4e37a0ad6b6b8ac950e31684120b784a5e5322 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNERDOjJEODkxOTozNzUwRTI6NEE2QzdDOjZCMDAyOEM4IiwidmlzaXRvcl9pZCI6IjcwMjM1MjQ4MDIyMTIxNDUzNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9299f496cb7e329a70a2e6327584f03bc57b64e4ddcad85c8f479a7382b559f |
| hovercard-subject-tag | issue:936200608 |
| github-keyboard-shortcuts | repository,issues,commits,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/pre-commit/pre-commit/1966/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e212d756d1fe2319a161b5bea815dab5750631b741f3ace46514a78f3d5bd2f/pre-commit/pre-commit/issues/1966 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e212d756d1fe2319a161b5bea815dab5750631b741f3ace46514a78f3d5bd2f/pre-commit/pre-commit/issues/1966 |
| og:image:alt | I have some doubts that is a pre-commit bug but I am encountering some very weird behaviors from the mypy hook, which makes mypy to alternate between passing or reporting errors on the same codebas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ssbarnea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| 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