{"id":16876247,"url":"https://github.com/coolcat467/idletypecheck","last_synced_at":"2025-04-11T11:32:22.758Z","repository":{"id":60680060,"uuid":"544673734","full_name":"CoolCat467/idletypecheck","owner":"CoolCat467","description":"Idle Type Check - IDLE Extension to use mypy to type check open file","archived":false,"fork":false,"pushed_at":"2025-04-07T22:34:14.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T23:28:29.053Z","etag":null,"topics":["analysis","coolcat467","extension","idle","mypy","python","python-idle","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/idletypecheck/","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/CoolCat467.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-10-03T02:46:20.000Z","updated_at":"2025-04-07T22:34:17.000Z","dependencies_parsed_at":"2023-12-12T01:41:44.915Z","dependency_job_id":"28e3a8dc-cf03-4b8a-87d5-730158df3eb8","html_url":"https://github.com/CoolCat467/idletypecheck","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"096b19c89de75d4637f9e53e945a4215672f677f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolCat467%2Fidletypecheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolCat467%2Fidletypecheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolCat467%2Fidletypecheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolCat467%2Fidletypecheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoolCat467","download_url":"https://codeload.github.com/CoolCat467/idletypecheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384072,"owners_count":21094669,"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":["analysis","coolcat467","extension","idle","mypy","python","python-idle","python3"],"created_at":"2024-10-13T15:38:46.519Z","updated_at":"2025-04-11T11:32:22.718Z","avatar_url":"https://github.com/CoolCat467.png","language":"Python","readme":"# IdleTypeCheck\nPython IDLE extension to perform mypy analysis on an open file\n\n\u003c!-- BADGIE TIME --\u003e\n\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/CoolCat467/idletypecheck/main.svg)](https://results.pre-commit.ci/latest/github/CoolCat467/idletypecheck/main)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![code style: black](https://img.shields.io/badge/code_style-black-000000.svg)](https://github.com/psf/black)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n\u003c!-- END BADGIE TIME --\u003e\n\n## Notice\nThis project is superseded by my other IDLE extension,\n[IdleMypyExtension](https://github.com/CoolCat467/idlemypyextension), which\nuses the mypy daemon instead and has many more features.\n\n## What does this extension do?\nThis IDLE extension hooks into mypy to type check the currently\nopen file. When type checking the currently open file with the\n\"Type Check File\" command, it will add comments to your code wherever\nmypy had something to say about about that line. You can remove type\ncomments from the currently selected text with the \"Remove Type Comments\"\ncommand.\nAdditionally, you can jump to the next comment this extension created in\nyour file with the \"Find Next Type Comment\" command.\n\nNote: On use, creates folder `mypy` within the idle user directory.\nOn Linux systems, this is usually `~/.idlerc/mypy`.\n\n## Installation (Without root permissions)\n1) Go to terminal and install with `pip install idletypecheck[user]`.\n2) Run command `idleuserextend; idletypecheck`. You should see the following\noutput: `Config should be good! Config should be good!`.\n3) Open IDLE, go to `Options` -\u003e `Configure IDLE` -\u003e `Extensions`.\nIf everything went well, alongside `ZzDummy` there should be and\noption called `idletypecheck`. This is where you can configure how\nidletypecheck works.\n\n## Installation (Legacy, needs root permission)\n1) Go to terminal and install with `pip install idletypecheck`.\n2) Run command `idletypecheck`. You will likely see a message saying\n`typecheck not in system registered extensions!`. Run the command\ngiven to add lintcheck to your system's IDLE extension config file.\n3) Again run command `typecheck`. This time, you should see the following\noutput: `Config should be good!`.\n4) Open IDLE, go to `Options` -\u003e `Configure IDLE` -\u003e `Extensions`.\nIf everything went well, alongside `ZzDummy` there should be and\noption called `idletypecheck`. This is where you can configure how\nidletypecheck works.\n\n\n## Information on options\nFor `extra_args`, see `mypy --help` for a list of valid flags.\nThis extension sets the following flags to be able to work properly:\n```\n    --hide-error-context\n    --no-color-output\n    --show-absolute-path\n    --no-error-summary\n    --soft-error-limit=-1\n    --show-traceback\n    --cache-dir=\"~/.idlerc/mypy\"\n```\n\nIf you add the `--show-column-numbers` flag to `extra_args`, when using the\n\"Type Check File\" command, it will add a helpful little `^` sign\nin a new line below the location of the mypy message that provided a column\nnumber, as long as that comment wouldn't break your file's indentation too much.\n\nIf you add the `--show-error-codes` flag to `extra_args`, when using the\n\"Type Check File\" command, when it puts mypy's comments in your code, it will\ntell you what type of error that comment is. For example, it would change the\nerror comment\n```python\n# typecheck: error: Incompatible types in assignment (expression has type \"str\", variable has type \"int\")\n```\nto\n```python\n# typecheck: assignment error: Incompatible types in assignment (expression has type \"str\", variable has type \"int\")\n```\n\n`search_wrap` toggles weather searching for next type comment will wrap\naround or not.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolcat467%2Fidletypecheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolcat467%2Fidletypecheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolcat467%2Fidletypecheck/lists"}