2018-10-05 14:24:36 +00:00
|
|
|
exclude: >
|
|
|
|
(?x)^(
|
|
|
|
deluge/ui/web/docs/template/.*|
|
|
|
|
)$
|
2018-10-05 08:39:30 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/ambv/black
|
|
|
|
rev: 18.9b0
|
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
name: Fmt Black
|
|
|
|
language_version: python3.6
|
|
|
|
- repo: https://github.com/prettier/prettier
|
2019-03-29 10:57:22 +00:00
|
|
|
rev: 1.16.4
|
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
|
|
|
|
rev: 3.7.7
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
name: Chk Flake8
|
|
|
|
additional_dependencies:
|
|
|
|
- flake8-isort==2.7
|
|
|
|
- pep8-naming==0.8.2
|
2018-10-05 08:39:30 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2019-03-29 10:57:22 +00:00
|
|
|
rev: v2.1.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
|