summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriilei <iilei@users.noreply.github.com>2020-06-16 08:43:16 +0200
committerGitHub <noreply@github.com>2020-06-16 08:43:16 +0200
commit1047b76efc8ac0b60dce3c24aaa5b722b500b015 (patch)
tree0d282c884b9a6ae541421812c443def8a8f62509
parent7bf11769db270b828280433fcffe15ecaf196e4d (diff)
downloadpylint-git-1047b76efc8ac0b60dce3c24aaa5b722b500b015.tar.gz
Set default pre-commit hook config: single process (#3689)
The default pre-commit behaviour might lead to falsely succeeding lint-runs. E.g. due to duplicate lines of code spread across multiple files -- if affected files get spread across multiple runs, duplicates can not be detected.
-rw-r--r--.pre-commit-hooks.yaml1
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--ChangeLog1
3 files changed, 4 insertions, 0 deletions
diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml
index 17d980b4d..66d447127 100644
--- a/.pre-commit-hooks.yaml
+++ b/.pre-commit-hooks.yaml
@@ -3,3 +3,4 @@
entry: pylint
language: python
types: [python]
+ require_serial: true
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 4bcf7a1b9..6c6a21a46 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -389,3 +389,5 @@ contributors:
* Jeremy Fleischman (jfly): contributer
* Shiv Venkatasubrahmanyam
+
+* Jochen Preusche (iilei): contributor
diff --git a/ChangeLog b/ChangeLog
index 703287cf2..2dc3aba71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@ Release date: TBA
* Fix a bug with `ignore-docstrings` ignoring all lines in a module
+* Fix `pre-commit` config that could lead to undetected duplicate lines of code
What's New in Pylint 2.5.3?
===========================