1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00
Commit graph

44 commits

Author SHA1 Message Date
kzndotsh
cb135e4468 chore(.pre-commit-config.yaml): upgrade ruff-pre-commit from v0.6.5 to v0.6.6 to include latest updates and bug fixes 2024-09-21 00:40:54 -04:00
pre-commit-ci[bot]
c2d6a6db5c
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/gitleaks/gitleaks: v8.18.4 → v8.19.2](https://github.com/gitleaks/gitleaks/compare/v8.18.4...v8.19.2)
- [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.6.5)
2024-09-16 20:31:38 +00:00
kzndotsh
50bd252ce3 chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.6.3 to v0.6.4 to get the latest features and bug fixes 2024-09-06 21:44:40 +00:00
pre-commit-ci[bot]
55d59c5965
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.2 → v0.6.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.2...v0.6.3)
2024-09-02 20:27:43 +00:00
kzndotsh
104db94d41 chore(.pre-commit-config.yaml): comment out pyright-python hook due to compatibility issues
refactor(.pre-commit-config.yaml): change exclude path from /stubs to /typings for better directory naming
2024-08-31 17:44:28 +00:00
kzndotsh
43ddda891d feat(.pre-commit-config.yaml): add pyright hook to pre-commit config for better type checking
refactor(.pre-commit-config.yaml): update exclude pattern to exclude stubs directory along with .archive directory
2024-08-30 00:08:26 +00:00
kzndotsh
cd58188c3c chore(.pre-commit-config.yaml): reorder pre-commit hooks for better organization
feat(.pre-commit-config.yaml): add pyupgrade hook to automatically upgrade syntax for newer versions of Python
fix(.pre-commit-config.yaml): remove duplicate gitleaks hook entry
2024-08-27 11:26:58 +00:00
kzndotsh
84fc117a03 Revert "chore(.pre-commit-config.yaml): exclude .archive/ directory from pre-commit checks to improve performance"
This reverts commit e82046de51.
2024-08-25 02:07:25 -04:00
kzndotsh
e82046de51 chore(.pre-commit-config.yaml): exclude .archive/ directory from pre-commit checks to improve performance 2024-08-24 23:00:35 +00:00
kzndotsh
103374deba chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.6.1 to v0.6.2 for latest features and bug fixes 2024-08-23 07:14:38 +00:00
kzndotsh
d8c4f5f877 chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.5.7 to v0.6.1 for latest features and bug fixes 2024-08-17 00:16:16 +00:00
kzndotsh
fd3887ae5e chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.5.6 to v0.5.7 to get the latest features and bug fixes 2024-08-10 02:31:29 +00:00
pre-commit-ci[bot]
c7601d02b8
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.5.6)
2024-08-05 20:55:11 +00:00
kzndotsh
31597e452a feat(pre-commit-config.yaml): update ruff-pre-commit version to v0.5.5 for latest features and bug fixes
feat(settings.json): add new image URLs for various case statuses to enhance visual feedback
refactor(cases.py): improve code readability by adding parameter descriptions and breaking down long function calls
feat(cases.py): add active and inactive case icons to embeds for better visual distinction between case statuses
2024-07-25 19:24:41 +00:00
kzndotsh
45ec24eaff chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.5.3 to v0.5.4 to include latest updates and bug fixes 2024-07-22 16:32:33 +00:00
kzndotsh
78630c3b80 feat(pre-commit-config.yaml): update ruff-pre-commit version to v0.5.3 for latest features and bug fixes
refactor(schema.prisma): switch from PROD to DEV database URLs for development testing
feat(schema.prisma): add JAIL and UNJAIL to CaseType enum to support new jail feature
feat(schema.prisma): add case_target_roles field to Case model to store jailed user's roles
refactor(schema.prisma): add comments to case_number and case_expires_at fields for clarity
refactor(schema.prisma): add comment to reminder_channel_id field for clarity
feat(jail.py): add new Jail cog for jailing users in the server

feat(unjail.py): add new Unjail class to handle unjailing of users
feat(case.py): add method to get last jail case by target id and guild id for unjailing process
feat(flags.py): add JailFlags and UnjailFlags classes to handle command flags for jailing and unjailing commands
2024-07-19 09:12:51 +00:00
electron271
2e16cb29eb
add role toggle command 2024-07-18 12:42:43 -05:00
kzndotsh
7ee1fd1155 chore(.pre-commit-config.yaml): update ruff-pre-commit and gitleaks versions for better linting and security checks 2024-07-15 10:48:54 +00:00
kzndotsh
b02e1ee5f3 chore(.env.example): restructure and clean up environment variables for better organization and clarity
feat(.pre-commit-config.yaml): add pre-commit hooks for yaml, json, toml files and dotenv files for better code quality
feat(justfile): add check-types command to run pyright for type checking
refactor(pyproject.toml): replace aiopath with aiofiles and add types for aiofiles and psutil, adjust pyright settings for strict type checking
2024-07-13 19:21:16 +00:00
kzndotsh
fe57c02b99 feat(neofetch.py): add new neofetch command to display system and server stats
chore(.pre-commit-config.yaml): add new pre-commit hooks for trailing commas and gitleaks
refactor(cog_loader.py): improve error logging for cog loading failures
style(.pre-commit-config.yaml, cog_loader.py): apply code formatting rules

style(dev.py, eval.py, git.py, mail.py, random.py): improve code readability by breaking down long lines of code into multiple lines
refactor(eval.py): add trailing comma to logger.warning for better code formatting
refactor(git.py): simplify import statement for Issue from githubkit.versions.latest.models
refactor(mail.py): add line breaks for better readability and code consistency
refactor(random.py): add line breaks in function parameters and conditions for better readability

style(xkcd.py, config.py, export.py): refactor function arguments to multi-line for better readability

style: reformat code for better readability in audit.py, commands.py, gate.py, member.py, run.py, temp_vc.py, tty_roles.py, purge.py
refactor: improve code readability by breaking down complex expressions and function calls into multiple lines

style: reformat code for better readability and PEP8 compliance in multiple files

refactor: simplify list declaration in guide.py for better readability

refactor: improve function parameter formatting in multiple files for better readability

refactor: improve string formatting in multiple files for better readability

refactor: improve function declaration formatting in multiple files for better readability

refactor: improve embed creation in rolecount.py for better readability

style(snippets.py, tldr.py, tools.py, wiki.py): reformat code for better readability
refactor(tools.py): simplify dictionary initialization for encodings and decodings
perf(tldr.py, tools.py): reduce subprocess.run arguments to improve performance
fix(wiki.py): correct the order of error handling and embed creation for better error management

refactor(case.py): improve readability by breaking down long function signatures into multiple lines
style(case.py): add trailing commas to improve code formatting and ease of future changes

style(case.py): improve readability by breaking down long function parameters into multiple lines
refactor(case.py): add trailing commas in dictionary to make future changes cleaner and more readable

style(guild_config.py): refactor function definitions to improve readability and adhere to PEP8 line length standards

style: apply PEP 8 style guide to improve readability and maintainability
refactor: add trailing commas to improve diff readability in future changes
fix(event_handler.py): add missing comma in message string to fix syntax error

style: apply black formatting to improve code readability and maintain consistency across the codebase
2024-07-02 03:41:57 +00:00
kzndotsh
050d91bfe4
Merge pull request #296 from allthingslinux/pre-commit-ci-update-config 2024-07-01 22:39:54 -04:00
kzndotsh
7a02e448d3 chore: remove unused pyright and vulture configurations from .pre-commit-config.yaml and pyproject.toml
style(Dockerfile): improve readability by aligning RUN commands
refactor(pyproject.toml): increase line-length limit to 120 and change line-ending to 'lf' for better compatibility
2024-07-02 02:23:17 +00:00
pre-commit-ci[bot]
bffffc0130
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.10...v0.5.0)
2024-07-01 21:14:54 +00:00
kzndotsh
2567ccf3c5 chore(.pre-commit-config.yaml): update ruff-pre-commit version from v0.4.9 to v0.4.10 for latest features and bug fixes
refactor(info.py): remove irc command as it's no longer needed in the project
2024-06-23 07:15:19 +00:00
pre-commit-ci[bot]
641876bc00
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.4.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.8...v0.4.9)
2024-06-17 20:18:06 +00:00
pre-commit-ci[bot]
46baeba19b
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.5 → v0.4.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.5...v0.4.8)
2024-06-10 20:21:17 +00:00
pre-commit-ci[bot]
cc0a2ca7ff
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.4...v0.4.5)
2024-05-27 20:08:36 +00:00
pre-commit-ci[bot]
4fb7f1787a
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.4)
2024-05-13 20:08:05 +00:00
pre-commit-ci[bot]
bb9a4a95e9
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.2 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.2...v0.4.3)
2024-05-06 20:11:44 +00:00
pre-commit-ci[bot]
8d6918183d
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.4.2)
2024-04-29 20:27:41 +00:00
pre-commit-ci[bot]
41ae089f70
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.4.1)
2024-04-22 20:04:04 +00:00
pre-commit-ci[bot]
c1b9707d9a
[pre-commit.ci] pre-commit autoupdate
updates:
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.3.6 → v0.3.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.6...v0.3.7)
2024-04-15 20:21:48 +00:00
kzndotsh
67cdc52212 chore(pre-commit-config.yaml): update ruff-pre-commit version to v0.3.6 for latest features and bug fixes
feat(mypy.ini): add new mypy.ini file for better type checking configuration
fix(schema.prisma): make created_at field in Users model nullable to handle users without creation time
feat(schema.prisma): add color field to Roles model to store role's color information
refactor(pyproject.toml): rearrange linting configuration for better readability and remove redundant mypy configuration
2024-04-11 17:56:45 +00:00
kzndotsh
29970db833 chore(.mise.toml): remove unused env section
build(.pre-commit-config.yaml): update ruff-pre-commit version to v0.3.5
refactor(tux/cogs/utility/guide.py): remove guild banner from server guide embed
refactor(tux/cogs/utility/ping.py): use EmbedCreator for creating embeds
refactor(tux/utils/constants.py): reorganize and add new constants for embeds and interactions
feat(tux/utils/embeds.py): add new EmbedCreator class for creating standardized embeds
refactor(tux/utils/embedbuilder.py): remove unused embedbuilder file
2024-04-06 19:48:57 +00:00
kzndotsh
b5b1c4ff1a [Fix] Minor fixes 2024-03-29 11:48:35 -04:00
kzndotsh
772eae6a2d [Refactor] Major changes to dir structure, temp removal of permissions, added loguru, added some async libs, improve types, clean pyproject config 2024-03-27 16:16:33 -04:00
kzndotsh
19e79a4166 [CI/CD] Minor updates 2024-03-22 10:21:11 -04:00
kzndotsh
355dcb4f90 [Feat] Minimal ban and kick command 2024-03-12 01:07:04 -04:00
kaizen
e64781ad1b [Refactor][Update] pre-commit hook versions and refactor error handling
Pyright type checking has been set to basic for now.

The pre-commit hooks for `ruff-pre-commit` and `pyright-python` have been updated to their latest versions for code quality improvements. The `pre-commit-config` and `pyproject.toml` files were modified to reflect these changes.

Also, the error handler has been completely rewritten in a more flexible and scalable manner, addressing various error scenarios in a cleaner and clearer way. Individual error handling methods for common cases are now in place, making it easier to extend with more exception types in the future.

Removed some unused references to the old error handler in the main application file, simplifying the logic there. The `pyright` type checking configuration in `pyproject.toml` was also adjusted for less strict checking, better suited to our current project requirements.

Lastly, the lockfile `poetry.lock` was updated and unnecessarily tagged "dev" packages were removed.

In the wake of these changes, be mindful that the behaviour of error prompts to the user and of type checks may slightly differ.

Additional notes include punctuation and formatting adjustments to improve readability throughout the files changed.
2024-01-09 22:58:09 -05:00
kaizen
7ed07b7308 [CI/CD][Fix] Ruff pre-commit hook 2023-12-30 02:24:18 -05:00
Scott
fb5261dbd3 removed the extra line return 2023-12-27 19:05:14 -05:00
Scott
fa703a99d2 [Fix] added a line return to get a commit to test github action 2023-12-27 18:59:01 -05:00
Scott
485e015e5d [Fix][Reorg] Fixing some yml/toml files to add in support for poetry and added in an .env.example to show users what it should look like at this point in time 2023-12-27 18:29:04 -05:00
Scott
b2e859985c
Created .pre-commit-config.yaml
This will handle pre-commit hooks for the most part, creating a discussion for this later.
2023-11-30 23:52:07 -05:00