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:
|
|
|
|
- repo: https://github.com/ambv/black
|
2021-01-17 15:48:35 +00:00
|
|
|
rev: 20.8b1
|
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
|
|
|
|
rev: v2.2.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]
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
2021-01-17 15:48:35 +00:00
|
|
|
# v3.7.9 due to E402 issue: https://gitlab.com/pycqa/flake8/-/issues/638
|
2019-11-13 15:43:44 +00:00
|
|
|
rev: 3.7.9
|
2019-03-29 10:57:22 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
name: Chk Flake8
|
|
|
|
additional_dependencies:
|
2021-01-17 15:48:35 +00:00
|
|
|
- flake8-isort==4.0.0
|
|
|
|
- pep8-naming==0.11.1
|
|
|
|
args: [--isort-show-traceback]
|
2018-10-05 08:39:30 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-01-17 15:48:35 +00:00
|
|
|
rev: v3.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
|
|
|
|
rev: v2.29.1
|
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py36-plus]
|
|
|
|
stages: [manual]
|