From bc6e6cde8ff20a5f37f5a86083b22220cd8918ef Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Wed, 2 Jun 2021 20:23:49 +0200 Subject: [PATCH] chore: add missing linters to pre-commit and pin versions --- .pre-commit-config.yaml | 8 ++++++++ .renovaterc.json | 3 +++ requirements-lint.txt | 8 ++++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4893c36f..b35537cf0 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 1ddc2e836..319e22b07 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 c5000c756..533779622 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