pyproject.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [build-system]
  2. requires = ["setuptools", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [tool.ruff]
  5. select = ["E", "F"]
  6. ignore = []
  7. fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
  8. unfixable = []
  9. exclude = [
  10. ".bzr",
  11. ".direnv",
  12. ".eggs",
  13. ".git",
  14. ".git-rewrite",
  15. ".hg",
  16. ".mypy_cache",
  17. ".nox",
  18. ".pants.d",
  19. ".pytype",
  20. ".ruff_cache",
  21. ".svn",
  22. ".tox",
  23. ".venv",
  24. "__pypackages__",
  25. "_build",
  26. "buck-out",
  27. "build",
  28. "dist",
  29. "node_modules",
  30. "venv",
  31. ]
  32. line-length = 88
  33. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
  34. target-version = "py38"
  35. [tool.ruff.mccabe]
  36. max-complexity = 10
  37. [tool.black]
  38. line-length = 88
  39. target-version = ["py38", "py39", "py310", "py311"]
  40. include = '\.pyi?$'
  41. exclude = '''
  42. /(
  43. \.eggs
  44. | \.git
  45. | \.hg
  46. | \.mypy_cache
  47. | \.nox
  48. | \.pants.d
  49. | \.pytype
  50. | \.ruff_cache
  51. | \.svn
  52. | \.tox
  53. | \.venv
  54. | __pypackages__
  55. | _build
  56. | buck-out
  57. | build
  58. | dist
  59. | node_modules
  60. | venv
  61. )/
  62. '''
  63. [tool.black.format]
  64. color = true