From ccec643911204ec02681da67966270831b73da34 Mon Sep 17 00:00:00 2001 From: HAOCHENYE <21724054@zju.edu.cn> Date: Fri, 19 Jul 2024 02:26:56 +0800 Subject: [PATCH] Fix lint --- .github/workflows/merge_stage_test.yml | 2 +- .pre-commit-config-zh-cn.yaml | 3 ++- .pre-commit-config.yaml | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge_stage_test.yml b/.github/workflows/merge_stage_test.yml index f3ce6c12d3..7da7bf6ae2 100644 --- a/.github/workflows/merge_stage_test.yml +++ b/.github/workflows/merge_stage_test.yml @@ -1,5 +1,5 @@ name: merge_stage_test -env: +env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true on: push: diff --git a/.pre-commit-config-zh-cn.yaml b/.pre-commit-config-zh-cn.yaml index 313c83c84b..aa7fc07217 100644 --- a/.pre-commit-config-zh-cn.yaml +++ b/.pre-commit-config-zh-cn.yaml @@ -54,7 +54,7 @@ repos: - id: check-copyright args: ["mmcv", "tests", "--excludes", "mmcv/ops"] - repo: https://gitee.com/openmmlab/mirrors-mypy - rev: v0.812 + rev: v1.10.1 hooks: - id: mypy exclude: |- @@ -62,6 +62,7 @@ repos: ^test | ^docs ) + additional_dependencies: ['python3.10'] # - repo: local # hooks: # - id: clang-format diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 76ded556f9..1cfd62f997 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,7 +54,7 @@ repos: - id: check-copyright args: ["mmcv", "tests", "--excludes", "mmcv/ops"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.812 + rev: v1.10.1 hooks: - id: mypy exclude: |- @@ -62,6 +62,7 @@ repos: ^test | ^docs ) + additional_dependencies: ['python3.10'] # - repo: local # hooks: # - id: clang-format