pyproject.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [project]
  2. name = "upsystem"
  3. authors = [
  4. { name = "wenhongquan", email = "1432244016@qq.com"}
  5. ]
  6. description = "up"
  7. requires-python = ">=3.10"
  8. readme = "README.md"
  9. dynamic = ["version"]
  10. dependencies = [
  11. # "frappe~=15.0.0" # Installed and managed by bench.
  12. ]
  13. [build-system]
  14. requires = ["flit_core >=3.4,<4"]
  15. build-backend = "flit_core.buildapi"
  16. # These dependencies are only installed when developer mode is enabled
  17. [tool.bench.dev-dependencies]
  18. # package_name = "~=1.1.0"
  19. [tool.ruff]
  20. line-length = 110
  21. target-version = "py310"
  22. [tool.ruff.lint]
  23. select = [
  24. "F",
  25. "E",
  26. "W",
  27. "I",
  28. "UP",
  29. "B",
  30. "RUF",
  31. ]
  32. ignore = [
  33. "B017", # assertRaises(Exception) - should be more specific
  34. "B018", # useless expression, not assigned to anything
  35. "B023", # function doesn't bind loop variable - will have last iteration's value
  36. "B904", # raise inside except without from
  37. "E101", # indentation contains mixed spaces and tabs
  38. "E402", # module level import not at top of file
  39. "E501", # line too long
  40. "E741", # ambiguous variable name
  41. "F401", # "unused" imports
  42. "F403", # can't detect undefined names from * import
  43. "F405", # can't detect undefined names from * import
  44. "F722", # syntax error in forward type annotation
  45. "W191", # indentation contains tabs
  46. ]
  47. typing-modules = ["frappe.types.DF"]
  48. [tool.ruff.format]
  49. quote-style = "double"
  50. indent-style = "tab"
  51. docstring-code-format = true