add codespell to pre-commit hook
This commit is contained in:
@@ -24,6 +24,12 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: yapf
|
- id: yapf
|
||||||
|
|
||||||
|
# codespell
|
||||||
|
- repo: https://github.com/codespell-project/codespell
|
||||||
|
rev: v2.1.0
|
||||||
|
hooks:
|
||||||
|
- id: codespell
|
||||||
|
|
||||||
# pre-commit-hooks
|
# pre-commit-hooks
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.2.0
|
rev: v3.2.0
|
||||||
|
|||||||
@@ -20,3 +20,8 @@ known_first_party = realesrgan
|
|||||||
known_third_party = PIL,basicsr,cv2,numpy,torch,torchvision,tqdm
|
known_third_party = PIL,basicsr,cv2,numpy,torch,torchvision,tqdm
|
||||||
no_lines_before = STDLIB,LOCALFOLDER
|
no_lines_before = STDLIB,LOCALFOLDER
|
||||||
default_section = THIRDPARTY
|
default_section = THIRDPARTY
|
||||||
|
|
||||||
|
[codespell]
|
||||||
|
skip = .git,./docs/build
|
||||||
|
count =
|
||||||
|
quiet-level = 3
|
||||||
|
|||||||
Reference in New Issue
Block a user