mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[Lint] Update pre-commit linter versions
- Default to python3. - Needed to add six to isort config.
This commit is contained in:
parent
3c18e890e8
commit
7d67792493
2 changed files with 6 additions and 4 deletions
|
@ -1,16 +1,18 @@
|
||||||
|
default_language:
|
||||||
|
python: python3
|
||||||
exclude: >
|
exclude: >
|
||||||
(?x)^(
|
(?x)^(
|
||||||
deluge/ui/web/docs/template/.*|
|
deluge/ui/web/docs/template/.*|
|
||||||
)$
|
)$
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: 18.9b0
|
rev: 19.3b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
name: Fmt Black
|
name: Fmt Black
|
||||||
language_version: python3.6
|
language_version: python3.6
|
||||||
- repo: https://github.com/prettier/prettier
|
- repo: https://github.com/prettier/prettier
|
||||||
rev: 1.16.4
|
rev: 1.17.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: Fmt Prettier
|
name: Fmt Prettier
|
||||||
|
@ -25,7 +27,7 @@ repos:
|
||||||
- flake8-isort==2.7
|
- flake8-isort==2.7
|
||||||
- pep8-naming==0.8.2
|
- pep8-naming==0.8.2
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v2.1.0
|
rev: v2.2.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: double-quote-string-fixer
|
- id: double-quote-string-fixer
|
||||||
name: Fix Double-quotes
|
name: Fix Double-quotes
|
||||||
|
|
|
@ -26,7 +26,7 @@ known_third_party =
|
||||||
cairo, gi,
|
cairo, gi,
|
||||||
# Ignore other module dependencies for pre-commit isort.
|
# Ignore other module dependencies for pre-commit isort.
|
||||||
twisted, OpenSSL, pytest, recommonmark, chardet, pkg_resources, zope, mock,
|
twisted, OpenSSL, pytest, recommonmark, chardet, pkg_resources, zope, mock,
|
||||||
sphinx, rencode
|
sphinx, rencode, six
|
||||||
known_first_party = msgfmt, deluge
|
known_first_party = msgfmt, deluge
|
||||||
order_by_type = true
|
order_by_type = true
|
||||||
not_skip = __init__.py
|
not_skip = __init__.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue