add isort

This commit is contained in:
felinae98 2022-02-12 11:22:08 +08:00
parent 79799e6d44
commit 3e5e83098c
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 15 additions and 5 deletions

View File

@ -5,11 +5,10 @@ ci:
autoupdate_schedule: weekly
autoupdate_commit_msg: "auto update by pre-commit hooks"
repos:
# - repo: https://github.com/pycqa/isort
# rev: 5.10.1
# hooks:
# - id: isort
# args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.1.0

View File

@ -61,3 +61,14 @@ markers = [
"render: render img by chrome"
]
[tool.black]
line-length = 88
target-version = ["py39", "py310"]
include = '\.pyi?$'
extend-exclude = '''
'''
[tool.isort]
profile = "black"
line_length = 88
skip_gitignore = true