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

39 lines
820 B
YAML
Raw Permalink Normal View History

repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.19.2
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
hooks:
2024-03-29 15:48:35 +00:00
# Run the linter.
- id: ruff
2024-03-29 15:48:35 +00:00
args: [--fix]
# Run the formatter.
2023-12-30 07:24:18 +00:00
- id: ruff-format
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
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
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
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.378
# hooks:
# - id: pyright
exclude: '(^\.archive|/typings)/'