Skip to content

Commit

Permalink
Update CI with Mypy and Precommit (#29)
Browse files Browse the repository at this point in the history
* update state to be class based for mypy

* precommit trigger

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* better comment

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* clean up

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* editor config for precommit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
C-Loftus and pre-commit-ci[bot] committed Apr 6, 2024
1 parent 82d5147 commit 065c231
Show file tree
Hide file tree
Showing 49 changed files with 613 additions and 607 deletions.
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

0 comments on commit 065c231

Please sign in to comment.