summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 21:38:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 21:38:38 +0000
commit2e2851dc13d73352530dd4495c7e05603b2e520d (patch)
tree622b9cd8e5d32091c9aa9e4937b533975a40356c /.pre-commit-config.yaml
parentInitial commit. (diff)
downloaddeluge-2e2851dc13d73352530dd4495c7e05603b2e520d.tar.xz
deluge-2e2851dc13d73352530dd4495c7e05603b2e520d.zip
Adding upstream version 2.1.2~dev0+20240219.upstream/2.1.2_dev0+20240219upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--.pre-commit-config.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..4d0d922
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,51 @@
+default_language_version:
+ python: python3
+exclude: >
+ (?x)^(
+ deluge/ui/web/docs/template/.*|
+ deluge/tests/data/.*svg|
+ )$
+repos:
+ - repo: https://github.com/psf/black
+ rev: 23.1.0
+ hooks:
+ - id: black
+ name: Fmt Black
+ - repo: https://github.com/pre-commit/mirrors-prettier
+ rev: v2.7.1
+ hooks:
+ - id: prettier
+ name: Fmt Prettier
+ # Workaround to list modified files only.
+ args: [--list-different]
+ - repo: https://github.com/pycqa/isort
+ rev: 5.12.0
+ hooks:
+ - id: isort
+ name: Fmt isort
+ - repo: https://github.com/pycqa/flake8
+ rev: 6.0.0
+ hooks:
+ - id: flake8
+ name: Chk Flake8
+ additional_dependencies:
+ - pep8-naming==0.12.1
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.4.0
+ hooks:
+ - id: double-quote-string-fixer
+ 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]
+ - id: trailing-whitespace
+ name: Fix Trailing whitespace
+ - repo: https://github.com/asottile/pyupgrade
+ rev: v3.3.1
+ hooks:
+ - id: pyupgrade
+ args: [--py36-plus]
+ stages: [manual]