From c79a104cf589b5353f00b02bb06a1352c85148d6 Mon Sep 17 00:00:00 2001 From: WRH <12756472+wangruohui@users.noreply.github.com> Date: Thu, 20 Jul 2023 02:41:16 +0800 Subject: [PATCH] pre-commit hook (#3994) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 754b41034b0c..8a6af07d12b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - id: check-torchdist name: check-torchdist entry: ./scripts/check-torchdist.py - language: script + language: python exclude: ^(deepspeed/comm/|docs/|benchmarks/|scripts/check-torchdist.py|deepspeed/moe/sharded_moe.py|deepspeed/runtime/comm/coalesced_collectives.py|deepspeed/elasticity/elastic_agent.py|deepspeed/launcher/launch.py|tests/unit/comm/test_dist.py) # Specific deepspeed/ files are excluded for now until we wrap ProcessGroup in deepspeed.comm @@ -47,7 +47,7 @@ repos: - id: check-license name: check-license entry: ./scripts/check-license.py - language: script + language: python files: \.(py|c|cpp|cu|cc|h|hpp|cuh|hip|tr)$ - repo: https://github.com/codespell-project/codespell @@ -74,6 +74,6 @@ repos: - id: check-torchcuda name: check-torchcuda entry: ./scripts/check-torchcuda.py - language: script + language: python exclude: ^(.github/workflows/|scripts/check-torchcuda.py|docs/_tutorials/accelerator-abstraction-interface.md|accelerator/cuda_accelerator.py|deepspeed/inference/engine.py|deepspeed/model_implementations/transformers/clip_encoder.py|deepspeed/model_implementations/diffusers/vae.py|deepspeed/model_implementations/diffusers/unet.py|op_builder/spatial_inference.py|op_builder/transformer_inference.py|op_builder/builder.py|setup.py|tests/unit/ops/sparse_attention/test_sparse_attention.py) # Specific deepspeed/ files are excluded for now until we wrap ProcessGroup in deepspeed.comm