add pycln to auto remove unused imports (#1481)

This commit is contained in:
Ju4tCode
2022-12-17 17:04:38 +08:00
committed by GitHub
parent 932f50d1fb
commit a5d26b7747
6 changed files with 1539 additions and 1417 deletions

View File

@ -6,14 +6,20 @@ ci:
autoupdate_schedule: monthly
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln
args: [--config, pyproject.toml]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: v5.11.3
hooks:
- id: isort
stages: [commit]
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
stages: [commit]