pyproject.toml 549 B

1234567891011121314151617181920212223242526272829
  1. [tool.black]
  2. line-length = 88
  3. target-version = ['py39']
  4. include = '\.pyi?$'
  5. # 确保复杂表达式会被适当换行
  6. extend-exclude = '''
  7. /(
  8. # directories
  9. \.eggs
  10. | \.git
  11. | \.hg
  12. | \.mypy_cache
  13. | \.tox
  14. | \.venv
  15. | build
  16. | dist
  17. )/
  18. '''
  19. [tool.isort]
  20. profile = "black"
  21. line_length = 88
  22. multi_line_output = 3
  23. include_trailing_comma = true
  24. force_grid_wrap = 0
  25. use_parentheses = true
  26. ensure_newline_before_comments = true
  27. known_first_party = ["src", "py_xiaozhi"]
  28. sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]