summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-06-02 20:23:49 +0200
committerJohn Villalovos <john@sodarock.com>2021-06-02 14:07:16 -0700
commit85bbd1a5db5eff8a8cea63b2b192aae66030423d (patch)
tree96707048528608879437dc197354149bb0433470
parentd981956a8782d3dc8210498e6b67af7a71abefa2 (diff)
downloadgitlab-85bbd1a5db5eff8a8cea63b2b192aae66030423d.tar.gz
chore: add missing linters to pre-commit and pin versions
-rw-r--r--.pre-commit-config.yaml8
-rw-r--r--.renovaterc.json3
-rw-r--r--requirements-lint.txt8
3 files changed, 15 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e4893c3..b35537c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,15 @@ repos:
- id: commitlint
additional_dependencies: ['@commitlint/config-conventional']
stages: [commit-msg]
+ - repo: https://github.com/pycqa/flake8
+ rev: 3.9.2
+ hooks:
+ - id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
+ - repo: https://github.com/pre-commit/mirrors-mypy
+ rev: v0.812
+ hooks:
+ - id: mypy
diff --git a/.renovaterc.json b/.renovaterc.json
index 1ddc2e8..319e22b 100644
--- a/.renovaterc.json
+++ b/.renovaterc.json
@@ -2,6 +2,9 @@
"extends": [
"config:base"
],
+ "pip_requirements": {
+ "fileMatch": ["^requirements(-[\\w]*)?\\.txt$"]
+ },
"regexManagers": [
{
"fileMatch": ["^tests/functional/fixtures/.env$"],
diff --git a/requirements-lint.txt b/requirements-lint.txt
index c5000c7..5337796 100644
--- a/requirements-lint.txt
+++ b/requirements-lint.txt
@@ -1,4 +1,4 @@
-black
-flake8
-isort
-mypy
+black==20.8b1
+flake8==3.9.2
+isort==5.8.0
+mypy==0.812