File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# IdleMypyExtension
22Python IDLE extension to perform mypy analysis on an open file
33
4- [ ![ Tests ] ( https://github.com/CoolCat467/idlemypyextension/actions/workflows/tests .yml/badge.svg?branch=main )] ( https://github.com/CoolCat467/idlemypyextension/actions/workflows/tests .yml )
4+ [ ![ CI ] ( https://github.com/CoolCat467/idlemypyextension/actions/workflows/ci .yml/badge.svg )] ( https://github.com/CoolCat467/idlemypyextension/actions/workflows/ci .yml )
55<!-- BADGIE TIME -->
66
77[ ![ pre-commit.ci status] ( https://results.pre-commit.ci/badge/github/CoolCat467/idlemypyextension/main.svg )] ( https://results.pre-commit.ci/latest/github/CoolCat467/idlemypyextension/main )
@@ -91,3 +91,26 @@ definition
9191
9292` timeout_mins ` controls how long the mypy daemon will time out after,
9393in minutes.
94+
95+ ## Annotating files from mypy error logs
96+ I kept running into cases a lot where CI systems generate mypy error logs, and
97+ I needed to fix those errors with my local copy. If you copy all the mypy
98+ errors into a file, say ` error.txt ` , you can have idlemypyextension annotate
99+ all of those files with a command like this:
100+
101+ ``` bash
102+ idlemypyextension error.txt
103+ ```
104+
105+ which will open a blank IDLE window, hook into ` idlemypyextension ` , have it
106+ add annotations to all files referenced in error log file, and then close
107+ that temporary blank window, leaving all the files with errors still open.
108+
109+
110+ ### Links
111+ * Source Code - https://github.com/CoolCat467/idlemypyextension.git
112+ * Issues - https://github.com/CoolCat467/idlemypyextension/issues
113+
114+ ### License
115+ -------
116+ Code and documentation are available according to the GNU General Public License v3.0 (see [ LICENSE] ( https://github.com/CoolCat467/idlemypyextension/blob/HEAD/LICENSE ) ).
You can’t perform that action at this time.
0 commit comments