Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI with Mypy and Precommit #29

Merged
merged 9 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See https://EditorConfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_size = 4
indent_style = space
max_line_length = 88
trim_trailing_whitespace = true

[*.{md,yaml,yml}]
indent_size = 2

[Makefile]
indent_style = tab
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ manifest.ini

.ruff_cache/
.mypy_cache/
__pycache__/
__pycache__/
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"ms-python.vscode-pylance",
"charliermarsh.ruff"
]
}
}
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"source.fixAll": "always"
},
"editor.defaultFormatter": "charliermarsh.ruff"
},
}
}
}
8 changes: 2 additions & 6 deletions .vscode/typings/__builtins__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
def _(msg: str) -> str:
...


def pgettext(context: str, message: str) -> str:
...
def _(msg: str) -> str: ...
def pgettext(context: str, message: str) -> str: ...
17 changes: 8 additions & 9 deletions application-integration/chat-gpt-browser.talon
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
title: /https://chat.openai.com/

-
Open new chat: key(ctrl-shift-o)
Focus chat input: key(shift-esc)
Copy last code block: key(ctrl-shift-;)
Copy last response: key(ctrl-shift-c)
Open new chat: key(ctrl-shift-o)
Focus chat input: key(shift-esc)
Copy last code block: key(ctrl-shift-;)
Copy last response: key(ctrl-shift-c)

speak [last] ( response | output | chat ):
speak [last] (response | output | chat):
key(ctrl-shift-c)
sleep(0.3)
user.tts(clip.text())
Expand All @@ -16,6 +15,6 @@ speak last code [block]:
sleep(0.3)
user.tts(clip.text())

Set custom instructions: key(ctrl-shift-i)
Toggle sidebar: key(ctrl-shift-s)
Delete chat: key(ctrl-shift-delete)
Set custom instructions: key(ctrl-shift-i)
Toggle sidebar: key(ctrl-shift-s)
Delete chat: key(ctrl-shift-delete)
1 change: 0 additions & 1 deletion application-integration/cursorless-sightless.talon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
tag: user.cursorless

-
speak <user.cursorless_target>:
txt = user.cursorless_get_text(cursorless_target)
Expand Down
4 changes: 1 addition & 3 deletions application-integration/ms-edge-tts.talon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ os: windows
and app.name: Microsoft Edge
os: windows
and app.exe: msedge.exe

-
# This file takes advantage of the functionality for more natural text to speech within Microsoft edge
# as of 2023, this functionality is not present on Linux
Expand All @@ -12,8 +11,7 @@ read aloud:
sleep(1)
key(ctrl)

toggle immersive reader:
key(f9)
toggle immersive reader: key(f9)

toggle immersive reader and read aloud:
key(ctrl-shift-u)
Expand Down
Loading
Loading