summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2019-05-03 16:32:13 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2019-05-03 17:50:42 +0100
commit7d677924930a6273958b2f2fdc087e5329582898 (patch)
treeb437c59a7a1b6d2ec3365786d11280417cdc60f2
parent3c18e890e84b85bdc96767a7593df9e99baab90d (diff)
downloaddeluge-7d677924930a6273958b2f2fdc087e5329582898.tar.gz
deluge-7d677924930a6273958b2f2fdc087e5329582898.tar.bz2
deluge-7d677924930a6273958b2f2fdc087e5329582898.zip
[Lint] Update pre-commit linter versions
- Default to python3. - Needed to add six to isort config.
-rw-r--r--.pre-commit-config.yaml8
-rw-r--r--setup.cfg2
2 files changed, 6 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1cebebd4e..5d652b721 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,16 +1,18 @@
+default_language:
+ python: python3
exclude: >
(?x)^(
deluge/ui/web/docs/template/.*|
)$
repos:
- repo: https://github.com/ambv/black
- rev: 18.9b0
+ rev: 19.3b0
hooks:
- id: black
name: Fmt Black
language_version: python3.6
- repo: https://github.com/prettier/prettier
- rev: 1.16.4
+ rev: 1.17.0
hooks:
- id: prettier
name: Fmt Prettier
@@ -25,7 +27,7 @@ repos:
- flake8-isort==2.7
- pep8-naming==0.8.2
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.1.0
+ rev: v2.2.1
hooks:
- id: double-quote-string-fixer
name: Fix Double-quotes
diff --git a/setup.cfg b/setup.cfg
index 2cbd5785a..47c869f81 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -26,7 +26,7 @@ known_third_party =
cairo, gi,
# Ignore other module dependencies for pre-commit isort.
twisted, OpenSSL, pytest, recommonmark, chardet, pkg_resources, zope, mock,
- sphinx, rencode
+ sphinx, rencode, six
known_first_party = msgfmt, deluge
order_by_type = true
not_skip = __init__.py