mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
78630c3b80
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
27 lines
591 B
YAML
27 lines
591 B
YAML
repos:
|
|
- 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/asottile/add-trailing-comma
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: add-trailing-comma
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.5.3
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
args: [--fix]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
rev: v8.18.4
|
|
hooks:
|
|
- id: gitleaks
|
|
exclude: ".archive/"
|