diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8871bd4..6796996 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 2619687..4cb3ab9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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