diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e920f7ec..5c227d686 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,9 @@ repos: "--remove-unused-variable", "--ignore-init-module-imports", ] + files: \.py$ - repo: https://gitee.com/SWHL/black rev: 23.1.0 hooks: - - id: black \ No newline at end of file + - id: black + files: \.py$ \ No newline at end of file