From 7ab18c75719e9500bcd73e852daaa2f98783fb2b Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 4 Nov 2020 10:23:47 +0800 Subject: [PATCH] Fix windows error by upgrading pre-commit-hook version. drop python 2.7 support. Now we only support python 3.6.1+ --- .pre-commit-config.yaml | 4 ++-- docs/en/contribute/install-pre-commit-hook.rst | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9ce52d2d6..c412279689 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v3.3.0 hooks: - id: trailing-whitespace exclude: '.+\.(md|rst)' @@ -14,7 +14,7 @@ repos: - id: mixed-line-ending args: ['-f=lf'] - repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.9 + rev: 3.8.4 hooks: - id: flake8 args: ['--config=.flake8', '--tee', '--benchmark'] diff --git a/docs/en/contribute/install-pre-commit-hook.rst b/docs/en/contribute/install-pre-commit-hook.rst index 4af1f559dc..246c2194b4 100644 --- a/docs/en/contribute/install-pre-commit-hook.rst +++ b/docs/en/contribute/install-pre-commit-hook.rst @@ -1,6 +1,13 @@ Install pre-commit Hook for ESP-IDF Project =========================================== +Required Dependency +------------------- + +Python 3.6.1 or above. This is our recommendation python version for IDF developers. + +If you still have versions not compatible, please do not install pre-commit hook and update your python versions. + Install pre-commit ------------------