Skip to content

Commit

Permalink
add codespell to pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
xinntao committed Sep 27, 2021
1 parent 14247a8 commit 772923e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Expand Up @@ -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

0 comments on commit 772923e

Please sign in to comment.