summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-04 10:00:52 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-04 10:49:08 +0200
commit5e5f2427c8aa62a69d6bce9b56233a03e2d56c43 (patch)
treecd080bd6c62c510a21fe0c12c64017ef6e0aec68
parenta119a340144dd55ed65740d55edab205147d5833 (diff)
downloadpylint-git-5e5f2427c8aa62a69d6bce9b56233a03e2d56c43.tar.gz
Upgrade pre-commit configuration
The order is important for efficiency.
-rw-r--r--.pre-commit-config.yaml30
-rw-r--r--requirements_test_pre_commit.txt4
2 files changed, 18 insertions, 16 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2348b87d8..b316de0b7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,4 +1,11 @@
repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v3.4.0
+ hooks:
+ - id: trailing-whitespace
+ exclude: "tests/functional/t/trailing_whitespaces.py"
+ - id: end-of-file-fixer
+ exclude: "tests/functional/m/missing/missing_final_newline.py|tests/functional/t/trailing_newlines.py"
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
@@ -11,27 +18,15 @@ repos:
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/asottile/pyupgrade
- rev: v2.10.0
+ rev: v2.11.0
hooks:
- id: pyupgrade
args: [--py36-plus]
exclude: *fixtures
-- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v3.4.0
- hooks:
- - id: trailing-whitespace
- exclude: "tests/functional/t/trailing_whitespaces.py"
- - id: end-of-file-fixer
- exclude: "tests/functional/m/missing/missing_final_newline.py|tests/functional/t/trailing_newlines.py"
- repo: https://github.com/PyCQA/isort
- rev: 5.7.0
+ rev: 5.8.0
hooks:
- id: isort
-- repo: https://gitlab.com/pycqa/flake8
- rev: 3.9.0
- hooks:
- - id: flake8
- exclude: *fixtures
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
@@ -39,9 +34,14 @@ repos:
args: [--safe, --quiet]
exclude: *fixtures
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker/
- rev: 0.0.1
+ rev: 1.0.0
hooks:
- id: black-disable-checker
+- repo: https://gitlab.com/pycqa/flake8
+ rev: 3.9.0
+ hooks:
+ - id: flake8
+ exclude: *fixtures
- repo: local
hooks:
- id: pylint
diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt
index faeaf4531..d9f5fba3b 100644
--- a/requirements_test_pre_commit.txt
+++ b/requirements_test_pre_commit.txt
@@ -1,5 +1,7 @@
autoflake==1.4
black==20.8b1
flake8==3.9.0
-isort==5.7.0
+isort==5.8.0
mypy==0.812
+pyupgrade==2.11.0
+black-disable-checker==1.0.0