1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- repos:
- - repo: meta
- hooks:
- - id: check-hooks-apply
- - id: check-useless-excludes
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.0.1
- hooks:
- - id: check-case-conflict
- - id: check-json
- - id: check-symlinks
- - id: check-yaml
- - id: destroyed-symlinks
- - id: end-of-file-fixer
- exclude: docs/CNAME
- - id: fix-byte-order-marker
- - id: fix-encoding-pragma
- args: [--remove]
- - id: mixed-line-ending
- args: [--fix=lf]
- - id: requirements-txt-fixer
- - id: trailing-whitespace
- - repo: https://github.com/pre-commit/mirrors-yapf
- rev: v0.31.0
- hooks:
- - id: yapf
- - repo: https://gitlab.com/daverona/pre-commit-cpp
- rev: 0.8.0
- hooks:
- - id: clang-format # formatter of C/C++ code based on a style guide: LLVM, Google, Chromium, Mozilla, and WebKit available
- args: []
- - repo: local
- hooks:
- - id: check-torchdist
- name: check-torchdist
- entry: ./scripts/check-torchdist.py
- language: script
- 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
- - repo: https://github.com/codespell-project/codespell
- rev: v2.1.0
- hooks:
- - id: codespell
- args: [
- # Do not check files that are automatically generated
- '--skip=docs/Gemfile.lock,tests/unit/gpt2-merges.txt,tests/unit/gpt2-vocab.json',
- '--ignore-regex=\\n', # Do not count the 'n' in an escaped newline as part of a word
- '--ignore-words-list=unsupport', # Word used in error messages that need rewording
- --check-filenames,
- --check-hidden
- ]
- - repo: https://github.com/pycqa/flake8
- rev: 4.0.1
- hooks:
- - id: flake8
- args: ['--ignore=E,F403,F405,F541,F841,W', '--select=E9,F,W6', '--per-file-ignores=__init__.py:F401']
|