{"id":18565020,"url":"https://github.com/greenbone/autohooks-plugin-mypy","last_synced_at":"2025-04-10T04:32:13.671Z","repository":{"id":149011199,"uuid":"621201086","full_name":"greenbone/autohooks-plugin-mypy","owner":"greenbone","description":"An autohooks plugin for python code static typing check via mypy","archived":false,"fork":false,"pushed_at":"2024-10-21T05:17:45.000Z","size":309,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-21T08:13:58.135Z","etag":null,"topics":["automation","base","devops","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenbone.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-30T07:32:34.000Z","updated_at":"2024-10-21T05:17:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0dfac13-5300-498c-aff1-6562fe51a158","html_url":"https://github.com/greenbone/autohooks-plugin-mypy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-mypy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-mypy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-mypy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenbone%2Fautohooks-plugin-mypy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenbone","download_url":"https://codeload.github.com/greenbone/autohooks-plugin-mypy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223424314,"owners_count":17142745,"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":["automation","base","devops","python"],"created_at":"2024-11-06T22:17:25.889Z","updated_at":"2024-11-06T22:17:25.990Z","avatar_url":"https://github.com/greenbone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Greenbone Logo](https://www.greenbone.net/wp-content/uploads/gb_new-logo_horizontal_rgb_small.png)\n\n# autohooks-plugin-mypy\n\n[![GitHub releases](https://img.shields.io/github/release/greenbone/autohooks-plugin-mypy.svg)](https://github.com/greenbone/autohooks-plugin-mypy/releases)\n[![PyPI release](https://img.shields.io/pypi/v/autohooks-plugin-mypy.svg)](https://pypi.org/project/autohooks-plugin-mypy/)\n[![code test coverage](https://codecov.io/gh/greenbone/autohooks-plugin-mypy/branch/main/graph/badge.svg)](https://codecov.io/gh/greenbone/autohooks-plugin-mypy)\n[![Build and test](https://github.com/greenbone/autohooks-plugin-mypy/actions/workflows/ci-python.yml/badge.svg)](https://github.com/greenbone/autohooks-plugin-mypy/actions/workflows/ci-python.yml)\n\nAn [autohooks](https://github.com/greenbone/autohooks) plugin for python code\nstatic typing check via [mypy](https://github.com/python/mypy).\n\n## Installation\n\n### Install using pip\n\nYou can install the latest stable release of autohooks-plugin-mypy from the\nPython Package Index using [pip](https://pip.pypa.io/):\n\n    python3 -m pip install autohooks-plugin-mypy\n\n### Install using poetry\n\nIt is highly encouraged to use [poetry](https://python-poetry.org) for\nmaintaining your project's dependencies. Normally autohooks-plugin-mypy is\ninstalled as a development dependency.\n\n    poetry install\n\n## Usage\n\nTo activate the mypy autohooks plugin please add the following setting to your\n*pyproject.toml* file.\n\n```toml\n[tool.autohooks]\npre-commit = [\"autohooks.plugins.mypy\"]\n```\n\nBy default, autohooks plugin mypy checks all files with a *.py* ending. If\nonly files in a sub-directory or files with different endings should be\nformatted, just add the following setting:\n\n```toml\n[tool.autohooks]\npre-commit = [\"autohooks.plugins.mypy\"]\n\n[tool.autohooks.plugins.mypy]\ninclude = ['foo/*.py', '*.foo']\n```\n\nBy default, autohooks plugin mypy executes mypy without any arguments.\nTo change specific settings or to define a mypy config file the following plugin configuration can be used:\n\n```toml\n[tool.autohooks]\npre-commit = [\"autohooks.plugins.mypy\"]\n\n[tool.autohooks.plugins.mypy]\narguments = [\"--ignore-missing-imports\", \"--config-file=/path/to/.mypy.ini\"]\n```\n\n## Maintainer\n\nThis project is maintained by [Greenbone AG](https://www.greenbone.net/).\n\n## Contributing\n\nYour contributions are highly appreciated. Please\n[create a pull request](https://github.com/greenbone/autohooks-plugin-mypy/pulls)\non GitHub. Bigger changes need to be discussed with the development team via the\n[issues section at GitHub](https://github.com/greenbone/autohooks-plugin-mypy/issues)\nfirst.\n\n## License\n\nCopyright (C) 2021 [Vincent Texier](https://gitlab.com/VictorIndiaTango).\nCopyright (C) 2023 [Greenbone AG](https://www.greenbone.net/)\n\nLicensed under the [GNU General Public License v3.0 or later](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenbone%2Fautohooks-plugin-mypy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenbone%2Fautohooks-plugin-mypy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenbone%2Fautohooks-plugin-mypy/lists"}