add codespell to pre-commit hook

This commit is contained in:
Xintao
2021-09-27 15:35:37 +08:00
parent 14247a89d9
commit 772923e207
2 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,12 @@ repos:
hooks:
- id: yapf
# codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
# pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0

View File

@@ -20,3 +20,8 @@ known_first_party = realesrgan
known_third_party = PIL,basicsr,cv2,numpy,torch,torchvision,tqdm
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY
[codespell]
skip = .git,./docs/build
count =
quiet-level = 3