diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2019-05-03 16:32:13 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-05-03 17:50:42 +0100 |
commit | 7d677924930a6273958b2f2fdc087e5329582898 (patch) | |
tree | b437c59a7a1b6d2ec3365786d11280417cdc60f2 | |
parent | 3c18e890e84b85bdc96767a7593df9e99baab90d (diff) | |
download | deluge-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.yaml | 8 | ||||
-rw-r--r-- | setup.cfg | 2 |
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 @@ -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 |