summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-10-05 15:24:36 +0100
committerCalum Lind <calumlind@gmail.com>2018-10-05 18:45:37 +0100
commita8a4fb69c099b82f3d35ac94e6198996971749dc (patch)
tree03ccc1f594bcf2cdffe9f93bfd4912d4a99b7361 /.pre-commit-config.yaml
parent6cf13d112bd619c487d8ef50f6854b94a0cb86bd (diff)
downloaddeluge-a8a4fb69c099b82f3d35ac94e6198996971749dc.tar.gz
deluge-a8a4fb69c099b82f3d35ac94e6198996971749dc.tar.bz2
deluge-a8a4fb69c099b82f3d35ac94e6198996971749dc.zip
[Lint] Exclude js and css from EOF fixer
- When running pre-commit on all files it is picking up minified js and css files. Since prettier will format correctly the source files ignore them in end-of-file fixer. - The template files in web docs can be ignored too. - Removed the unneeded `pre-commit-hooks` dependency as pre-commit resolves that itself. - Include files fixed by pre-commit.
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 95f028402..5d53fb355 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,3 +1,7 @@
+exclude: >
+ (?x)^(
+ deluge/ui/web/docs/template/.*|
+ )$
repos:
- repo: https://github.com/ambv/black
rev: 18.9b0
@@ -29,6 +33,7 @@ repos:
name: Fix Double-quotes
- id: end-of-file-fixer
name: Fix End-of-files
+ exclude_types: [javascript, css]
- id: mixed-line-ending
name: Fix Line-endings
args: [--fix=auto]