Skip to content

Commit

Permalink
[Lint] Update pre-commit linter versions
Browse files Browse the repository at this point in the history
- Default to python3.
- Needed to add six to isort config.
  • Loading branch information
cas-- committed May 3, 2019
1 parent 3c18e89 commit 7d67792
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d67792

Please sign in to comment.