From edd608b233a585519ba21858f75580c6d0b8e297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 9 Feb 2022 11:48:24 +0100 Subject: [PATCH] chore(pre-commit): updated versions --- .pre-commit-config.yaml | 73 ++++++++++++++++++++--------------------- pyproject.toml | 2 +- 2 files changed, 37 insertions(+), 38 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c05e27d..9a32e63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,43 +1,42 @@ repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.931 + hooks: + - id: mypy + additional_dependencies: [types-redis] -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.910 - hooks: - - id: mypy - additional_dependencies: [types-redis] + - repo: https://github.com/pycqa/isort + rev: 5.8.0 + hooks: + - id: isort + name: isort (python) + - id: isort + name: isort (cython) + types: [cython] + - id: isort + name: isort (pyi) + types: [pyi] -- repo: https://github.com/pycqa/isort - rev: 5.8.0 - hooks: - - id: isort - name: isort (python) - - id: isort - name: isort (cython) - types: [cython] - - id: isort - name: isort (pyi) - types: [pyi] + - repo: https://github.com/psf/black + rev: "22.1.0" + hooks: + - id: black + language_version: python -- repo: https://github.com/psf/black - rev: 21.9b0 - hooks: - - id: black - language_version: python + - repo: https://gitlab.com/pycqa/flake8 + rev: 4.0.1 + hooks: + - id: flake8 -- repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 - hooks: - - id: flake8 - -- repo: https://github.com/PyCQA/bandit - rev: 1.7.0 - hooks: - - id: bandit + - repo: https://github.com/PyCQA/bandit + rev: 1.7.0 + hooks: + - id: bandit diff --git a/pyproject.toml b/pyproject.toml index bb43c43..cf7fea9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,6 @@ profile = "black" multi_line_output = 3 [tool.mypy] -python_version = 3.10 +python_version = "3.10" warn_return_any = true warn_unused_configs = true