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
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
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
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
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
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
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
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.