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:
|
2022-02-13 12:31:41 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2023-02-24 14:56:23 +00:00
|
|
|
rev: 23.1.0
|
2018-10-05 08:39:30 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
name: Fmt Black
|
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]
|
2022-02-13 12:31:41 +00:00
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-02-24 13:52:56 +00:00
|
|
|
rev: 5.12.0
|
2022-02-13 12:31:41 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: Fmt isort
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
2023-02-24 14:56:23 +00:00
|
|
|
rev: 6.0.0
|
2019-03-29 10:57:22 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
name: Chk Flake8
|
|
|
|
additional_dependencies:
|
2022-02-13 12:31:41 +00:00
|
|
|
- pep8-naming==0.12.1
|
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: double-quote-string-fixer
|
|
|
|
name: Fix Double-quotes
|
|
|
|
- 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
|
|
|
|
args: [--py36-plus]
|
|
|
|
stages: [manual]
|