2019-06-10 13:24:47 +00:00
|
|
|
default_language_version:
|
2019-05-03 15:32:13 +00:00
|
|
|
python: python3
|
2018-10-05 14:24:36 +00:00
|
|
|
exclude: >
|
|
|
|
(?x)^(
|
|
|
|
deluge/ui/web/docs/template/.*|
|
2021-12-29 18:13:59 +00:00
|
|
|
deluge/tests/data/.*svg|
|
2018-10-05 14:24:36 +00:00
|
|
|
)$
|
2018-10-05 08:39:30 +00:00
|
|
|
repos:
|
2024-02-19 17:52:47 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
|
|
|
rev: v0.6.4
|
2018-10-05 08:39:30 +00:00
|
|
|
hooks:
|
2024-02-19 17:52:47 +00:00
|
|
|
- id: ruff
|
|
|
|
name: Chk Ruff
|
|
|
|
args: [--fix]
|
|
|
|
- id: ruff-format
|
|
|
|
name: Fmt Ruff
|
2021-01-17 15:48:35 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-02-24 14:56:23 +00:00
|
|
|
rev: v2.7.1
|
2018-10-05 08:39:30 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
name: Fmt Prettier
|
2019-03-29 10:57:22 +00:00
|
|
|
# Workaround to list modified files only.
|
|
|
|
args: [--list-different]
|
2018-10-05 08:39:30 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-02-24 14:56:23 +00:00
|
|
|
rev: v4.4.0
|
2018-10-05 08:39:30 +00:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
name: Fix End-of-files
|
2018-10-05 14:24:36 +00:00
|
|
|
exclude_types: [javascript, css]
|
2018-10-05 08:39:30 +00:00
|
|
|
- id: mixed-line-ending
|
2018-10-08 13:22:49 +00:00
|
|
|
name: Fix Line endings
|
2018-10-05 08:39:30 +00:00
|
|
|
args: [--fix=auto]
|
2018-10-08 13:22:49 +00:00
|
|
|
- id: trailing-whitespace
|
|
|
|
name: Fix Trailing whitespace
|
2021-12-28 20:20:57 +00:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-02-24 14:56:23 +00:00
|
|
|
rev: v3.3.1
|
2021-12-28 20:20:57 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2024-02-19 17:52:47 +00:00
|
|
|
args: [--py37-plus]
|
2021-12-28 20:20:57 +00:00
|
|
|
stages: [manual]
|