summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2019-03-09 09:05:14 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-03-20 09:07:35 +0100
commit2ca40bf161fa7c7c4b28c08062849ea1899d91d0 (patch)
treea64022e94d8aab5fbb17fd80574d4f35e1b63998
parent8d2f5d090b839b9a934fc9187da3766828734399 (diff)
downloadpylint-git-2ca40bf161fa7c7c4b28c08062849ea1899d91d0.tar.gz
Feat - Add isort in the pre-commit configuration
This is compatible with the current black configuration. See : https://github.com/ambv/black/issues/127
-rw-r--r--.isort.cfg7
-rw-r--r--.pre-commit-config.yaml4
2 files changed, 11 insertions, 0 deletions
diff --git a/.isort.cfg b/.isort.cfg
new file mode 100644
index 000000000..08417f775
--- /dev/null
+++ b/.isort.cfg
@@ -0,0 +1,7 @@
+[settings]
+multi_line_output=3
+line_length=88
+known_third_party=astroid, sphinx, isort, pytest, mccabe, six,
+include_trailing_comma=True
+skip_glob=*/functional/**,*/input/**,*/test/extension/**,*/test/regrtest_data/**,*/test/data/**
+project=pylint
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6c750f005..27ded48b9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,3 +11,7 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
+- repo: https://github.com/pre-commit/mirrors-isort
+ rev: v4.3.13
+ hooks:
+ - id: isort