[~] Refactor
This commit is contained in:
parent
64706907ca
commit
d3d5e3bcfb
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ d2/book1/books
|
|||||||
*.so
|
*.so
|
||||||
.mypy_cache
|
.mypy_cache
|
||||||
.ruff_cache
|
.ruff_cache
|
||||||
|
.tmuxp
|
||||||
|
3
Makefile
3
Makefile
@ -3,6 +3,9 @@
|
|||||||
host_deps:
|
host_deps:
|
||||||
./m host_deps
|
./m host_deps
|
||||||
|
|
||||||
|
python_lint:
|
||||||
|
./m mypy -- -f vscode -i deps/com.github.aiortc.aiortc/src/ 2>&1 | less
|
||||||
|
|
||||||
python_clean_online_fxreader_vpn:
|
python_clean_online_fxreader_vpn:
|
||||||
rm -fr \
|
rm -fr \
|
||||||
deps/com.github.aiortc.aiortc/src/online_fxreader/vpn/dist;
|
deps/com.github.aiortc.aiortc/src/online_fxreader/vpn/dist;
|
||||||
|
7
_m.py
7
_m.py
@ -205,11 +205,14 @@ def mypy(argv: list[str]) -> None:
|
|||||||
assert not res is None
|
assert not res is None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
errors = [
|
errors = sorted([
|
||||||
json.loads(o)
|
json.loads(o)
|
||||||
for o in res.stdout.decode('utf-8').splitlines()
|
for o in res.stdout.decode('utf-8').splitlines()
|
||||||
if not o.strip() == ''
|
if not o.strip() == ''
|
||||||
]
|
], key=lambda x: (
|
||||||
|
x.get('file', ''),
|
||||||
|
x.get('line', 0),
|
||||||
|
))
|
||||||
except:
|
except:
|
||||||
logger.exception('')
|
logger.exception('')
|
||||||
logger.error(res.stdout.decode('utf-8'))
|
logger.error(res.stdout.decode('utf-8'))
|
||||||
|
2
deps/com.github.aiortc.aiortc
vendored
2
deps/com.github.aiortc.aiortc
vendored
@ -1 +1 @@
|
|||||||
Subproject commit a1b860da536ff11bf2b03ed810c4f0a43aad2c05
|
Subproject commit 69fe05c5e17c1396a513df5cdc5cbbaba1dbac50
|
@ -10,7 +10,7 @@
|
|||||||
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen || terminalFocus && terminalIsOpen && terminalProcessSupported"
|
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen || terminalFocus && terminalIsOpen && terminalProcessSupported"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "alt+z",
|
"key": "alt+r",
|
||||||
"command": "workbench.action.toggleMaximizeEditorGroup",
|
"command": "workbench.action.toggleMaximizeEditorGroup",
|
||||||
"when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups"
|
"when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups"
|
||||||
},
|
},
|
||||||
@ -20,7 +20,7 @@
|
|||||||
"when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups"
|
"when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "alt+z",
|
"key": "alt+r",
|
||||||
"command": "workbench.action.toggleMaximizedPanel",
|
"command": "workbench.action.toggleMaximizedPanel",
|
||||||
"when": "!editorTextFocus"
|
"when": "!editorTextFocus"
|
||||||
},
|
},
|
||||||
@ -70,5 +70,34 @@
|
|||||||
{
|
{
|
||||||
"key": "ctrl+shift+f",
|
"key": "ctrl+shift+f",
|
||||||
"command": "-workbench.action.findInFiles"
|
"command": "-workbench.action.findInFiles"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+g",
|
||||||
|
"command": "-workbench.action.gotoLine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+g",
|
||||||
|
"command": "-workbench.action.terminal.goToRecentDirectory",
|
||||||
|
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+r",
|
||||||
|
"command": "-toggleSearchRegex",
|
||||||
|
"when": "searchViewletFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+r",
|
||||||
|
"command": "-toggleFindRegex",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+r",
|
||||||
|
"command": "-workbench.action.terminal.toggleFindRegex",
|
||||||
|
"when": "terminalFindVisible && terminalHasBeenCreated || terminalFindVisible && terminalProcessSupported"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "alt+r",
|
||||||
|
"command": "-toggleSearchEditorRegex",
|
||||||
|
"when": "inSearchEditor && searchInputBoxFocus"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -13,3 +13,4 @@ numpy
|
|||||||
scoping
|
scoping
|
||||||
types-setuptools
|
types-setuptools
|
||||||
uvloop
|
uvloop
|
||||||
|
pydantic
|
Loading…
Reference in New Issue
Block a user