Commit graph

1048 commits

Author SHA1 Message Date
5c6783452d
fix(hotreload): verify that a file path exists before creating an observer schedule for it
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 47s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 52s
2025-01-26 21:29:02 +00:00
70d75c688c
fix(hotreload): only import ObserverType for TYPE_CHECKING 2025-01-26 21:23:08 +00:00
76f0a4cdd4
chore(hotreload): support python 3.8+ instead of 3.10+
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 51s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 58s
2025-01-26 21:09:38 +00:00
19eca0b1b5
docs: fixed incorrect command instructions
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 42s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 48s
2025-01-26 15:33:34 +00:00
9e489a4c91
docs(hotreload): add docs
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 40s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 46s
2025-01-26 15:29:07 +00:00
1993da084d
docs(hotreload): add docs
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 43s
Actions / Lint Code (Ruff & Pylint) (push) Has been cancelled
2025-01-26 15:28:21 +00:00
b22d81f514
feat(hotreload): handle multiple observers
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 42s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 47s
2025-01-26 15:18:05 +00:00
ccf9389e13
feat(hotreload): Channel Notifications (#51)
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 41s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 47s
# Channel Notifications

This PR adds the ability for HotReload to send messages to a configurable discord channel when reloading a cog. Messages are only sent after the cog is reloaded to prevent slowdowns.
<!-- Create a new issue, if it doesn't exist yet -->

- [x] By submitting this pull request, I permit [cswimr](https://www.coastalcommits.com/cswimr) to license my work under
  the [Mozilla Public License Version 2.0](https://www.coastalcommits.com/cswimr/SeaCogs/src/branch/main/LICENSE).

Reviewed-on: https://www.coastalcommits.com/cswimr/SeaCogs/pulls/51
2025-01-26 10:06:14 -05:00
ff9e20be91
fix(pterodactyl): update pterodactyl for the new version of websockets & fix a few minor bugs
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 42s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 47s
2025-01-26 15:04:05 +00:00
d51e3f17e9
fix(antipolls): ruff fixes
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 42s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 48s
2025-01-26 14:22:12 +00:00
59d33ea87d
style(seautils): ruff fix
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 44s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 49s
2025-01-26 14:16:46 +00:00
65cfafc7b3
style(emojiinfo): ruff fix 2025-01-26 14:16:39 +00:00
ea5f51892a
style(repo): ruff fixes
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 42s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 47s
2025-01-26 14:13:37 +00:00
9df7f15bbe
chore(repo): enable even more ruff rules 2025-01-26 14:11:37 +00:00
4ad73ec6ee
fix(pterodactyl): ruff fix
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 43s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 47s
2025-01-26 14:10:48 +00:00
2543563af1
fix(hotreload): ruff fix 2025-01-26 14:10:48 +00:00
0b60a2df66
chore(repo): enable more ruff rules
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 44s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 49s
2025-01-26 14:03:28 +00:00
6f0fee8275
fix(backup): disable SLF001
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 45s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 52s
2025-01-26 13:42:57 +00:00
dbff8d0d2a
chore(repo): enable some more ruff rules 2025-01-26 13:42:48 +00:00
0c43e3d2c9
fix(backup): update for red 3.5.14 & reformat
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 44s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 51s
2025-01-26 13:21:28 +00:00
0f47a15291
fix(emojiinfo): ruff fixes & rename logger
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 43s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 49s
2025-01-26 13:18:04 +00:00
7f2a81e350
fix(bible): ruff fixes 2025-01-26 13:16:54 +00:00
5c5a2f28b2
chore(repo): reformat pyproject.toml and disable a stupid linting rule 2025-01-26 13:16:26 +00:00
d5a248733a
fix(pterodactyl): fix a ruff violation
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 44s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 51s
2025-01-26 13:09:15 +00:00
5decc51a36
chore(deps): update 2025-01-26 13:08:33 +00:00
41678ef3ed
chore(repo): enable more ruff linting rules 2025-01-26 13:08:28 +00:00
0492b30662
chore(repo): add two paths to gitignore 2025-01-26 13:08:02 +00:00
3063721b8d
chore(vscode): add some settings overrides 2025-01-26 13:07:46 +00:00
3d882625d2
style(seautils): reformat
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 36s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 40s
2025-01-26 01:54:02 +00:00
6c25d61dfd
fix(hotreload): use %s formatting in logging strings 2025-01-26 01:53:40 +00:00
6ffa81fdee
fix(bible): fix ruff errors 2025-01-26 01:53:09 +00:00
06e678f26f
style(repo): enable some more linting rules 2025-01-26 01:52:46 +00:00
e5210420cb
chore(vscode): force load hotreload in launch & debug configuration
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 35s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 40s
2025-01-26 01:08:06 +00:00
1677412b56
chore(hotreload): add disclaimer in install message that this cog doesn't add any commands
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 36s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 40s
2025-01-26 00:56:50 +00:00
451ecfe5d9
chore(tooling): disable too-many-positional-arguments
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 37s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 41s
2025-01-26 00:48:25 +00:00
8511b7b964
fix(bible): mark cog_unload as async 2025-01-26 00:46:21 +00:00
f233a7dec5
fix(hotreload): mark cog_load and cog_unload as async 2025-01-26 00:46:00 +00:00
18ba837467
fix(workflow): run on main branch and prs only, run docs build on prs
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 36s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 41s
2025-01-26 00:43:02 +00:00
2859f93501
fix(bible): close asyncio session after unloading the cog
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 35s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 40s
2025-01-26 00:39:09 +00:00
7d1a9cc01a
fix(hotreload): only add dest_package_name to the cogs_to_reload list if dest_package_name != src_package_name
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 34s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 40s
fix(hotreload): only add `dest_package_name` to the `cogs_to_reload` list if `dest_package_name != src_package_name`
2025-01-26 00:32:29 +00:00
5adc7a2c7b
feat(hotreload): Add more events (#50)
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 35s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 38s
# More HotReload Events
<!-- Create a new issue, if it doesn't exist yet -->
Currently, HotReload only supports file modification events. It should also support file moves, and some other event types.

- [x] By submitting this pull request, I permit cswimr to license my work under
  the [Mozilla Public License Version 2.0](https://www.coastalcommits.com/cswimr/SeaCogs/src/branch/main/LICENSE).

Reviewed-on: https://www.coastalcommits.com/cswimr/SeaCogs/pulls/50
2025-01-25 19:25:29 -05:00
5384809780
feat(hotreload): init (#49)
Some checks failed
Actions / Build Documentation (MkDocs) (push) Has been skipped
Actions / Lint Code (Ruff & Pylint) (push) Failing after 42s
Actions / Build Documentation (MkDocs) (pull_request) Has been skipped
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s
This pull request adds a cog that allows for automatic reloading of local cogs.

- [x] By submitting this pull request, I permit [cswimr](https://www.coastalcommits.com) to license my work under
  the [Mozilla Public License Version 2.0](https://www.coastalcommits.com/cswimr/SeaCogs/src/branch/main/LICENSE).

Reviewed-on: https://www.coastalcommits.com/cswimr/SeaCogs/pulls/49
2025-01-25 23:55:37 +00:00
78f036da48
feat(devcontainer): initialize redbot instance in postCreateCommand
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 37s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 41s
2025-01-25 22:50:35 +00:00
f831bfcdd5
feat(vscode): add --dev argument to redbot args
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 40s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 43s
2025-01-25 16:50:51 -05:00
9b60a8f01e
chore(vscode): add -vvv argument to launch & debug
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 37s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 41s
2025-01-25 15:47:05 -05:00
7369f5810a
fix(devcontainer): chown workspace directory
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 40s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 41s
for some reason, the default `.data` mount is not owned by the `vscode` user (on my system at least), so we `chown` it to ensure that `uv run redbot-setup` can write to the directory.
2025-01-25 14:43:02 -05:00
a8bb62dcf3
fix(devcontainer): ensure pip is installed in the devcontainer
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 37s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 41s
this is being done because Red-DiscordBot requires pip to be installed to function, but does not declare it as a dependency. this is only a problem when uv is being used to install dependencies in an environment where pip is not present. so, we ensure pip is present!
2025-01-25 14:39:24 -05:00
d910b0f4e1
chore(repo): add vscode run and debug configuration
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 38s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 42s
2025-01-24 23:12:58 +00:00
a04f1ddc6e
Merge pull request 'chore(deps): update www.coastalcommits.com/cswimr/actions:docs docker digest to e405cd6' (#43) from renovate/www.coastalcommits.com-cswimr-actions-docs into main
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 40s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 43s
Reviewed-on: https://www.coastalcommits.com/cswimr/SeaCogs/pulls/43
2025-01-24 18:07:33 -05:00
536a8c3c82
Merge pull request 'chore(deps): pin dependencies' (#46) from renovate/pin-dependencies into main
Some checks failed
Actions / Build Documentation (MkDocs) (push) Failing after 0s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 44s
Reviewed-on: https://www.coastalcommits.com/cswimr/SeaCogs/pulls/46
2025-01-24 18:06:29 -05:00