{"id":13595883,"url":"https://github.com/pre-commit/mirrors-mypy","last_synced_at":"2025-04-09T13:33:41.336Z","repository":{"id":34666296,"uuid":"135499882","full_name":"pre-commit/mirrors-mypy","owner":"pre-commit","description":"Mirror of mypy for pre-commit","archived":false,"fork":false,"pushed_at":"2024-10-23T08:35:15.000Z","size":46,"stargazers_count":278,"open_issues_count":0,"forks_count":42,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-10-30T00:00:04.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pre-commit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"asottile","open_collective":"pre-commit","tidelift":"pypi/pre-commit"}},"created_at":"2018-05-30T21:34:21.000Z","updated_at":"2024-10-27T22:42:17.000Z","dependencies_parsed_at":"2024-01-04T19:06:14.393Z","dependency_job_id":"4c851117-6b04-4216-aad2-dec0f3bc9d1d","html_url":"https://github.com/pre-commit/mirrors-mypy","commit_stats":{"total_commits":134,"total_committers":6,"mean_commits":"22.333333333333332","dds":0.417910447761194,"last_synced_commit":"d4911cfb7f1010759fde68da196036feeb25b99d"},"previous_names":[],"tags_count":125,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fmirrors-mypy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fmirrors-mypy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fmirrors-mypy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pre-commit%2Fmirrors-mypy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pre-commit","download_url":"https://codeload.github.com/pre-commit/mirrors-mypy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049723,"owners_count":21039266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:02:00.292Z","updated_at":"2025-04-09T13:33:39.118Z","avatar_url":"https://github.com/pre-commit.png","language":"Python","readme":"mypy mirror\n===========\n\nMirror of mypy for pre-commit.\n\nFor pre-commit: see https://github.com/pre-commit/pre-commit\nFor mypy: see https://github.com/python/mypy\n\n### Using mypy with pre-commit:\n\nAdd this to your `.pre-commit-config.yaml`\n\n```yaml\n-   repo: https://github.com/pre-commit/mirrors-mypy\n    rev: ''  # Use the sha / tag you want to point at\n    hooks:\n    -   id: mypy\n```\n\n\nBy default, mypy will run with `mypy --ignore-missing-imports`, `pre-commit`\nruns `mypy` from an isolated virtualenv so it won't have access to those.\nTo change the arguments, override the `args` as follows:\n\n```yaml\n    hooks:\n    -   id: mypy\n        args: [--strict, --ignore-missing-imports]\n```\n\nBecause `pre-commit` runs `mypy` from an isolated virtualenv (without your\ndependencies) you may also find it useful to add the typed dependencies to\n`additional_dependencies` so `mypy` can better perform dynamic analysis:\n\n```yaml\n    hooks:\n    -   id: mypy\n        additional_dependencies: [tokenize-rt==3.2.0]\n```\n\nNote that using the `--install-types` is problematic. Mutating the pre-commit\nenvironment at runtime breaks cache and will break parallel builds.\n","funding_links":["https://github.com/sponsors/asottile","https://opencollective.com/pre-commit","https://tidelift.com/funding/github/pypi/pre-commit"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpre-commit%2Fmirrors-mypy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpre-commit%2Fmirrors-mypy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpre-commit%2Fmirrors-mypy/lists"}