Files
DnD-Sidecar/.pre-commit-config.yaml
Fundor333 e031a66740 Update pre-commit configuration and dependencies
- Added isort and ruff as pre-commit hooks for code formatting and linting.
- Removed main.py file as it is no longer needed.
- Updated pyproject.toml to include new development dependencies: ruff and ty.
- Updated uv.lock to reflect new package versions and added ruff and ty packages.
2026-03-30 22:41:52 +02:00

55 lines
1.7 KiB
YAML

fail_fast: true
repos:
- repo: https://github.com/pycqa/isort
rev: 8.0.1
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff: Formatter and Linter.
rev: v0.15.8
hooks:
- id: ruff-format
args: [--verbose, ]
- id: ruff
args: [--verbose, --fix,]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: detect-private-key
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: forbid-new-submodules
- id: mixed-line-ending
- id: trailing-whitespace
language: python
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0 # Use the ref you want to point at
hooks:
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py312-plus]
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
[
"flake8-blind-except",
"flake8-docstrings",
"flake8-bugbear",
"flake8-comprehensions",
"flake8-docstrings",
"flake8-implicit-str-concat",
"pydocstyle>=5.0.0",
]