pyproject.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [build-system]
  2. requires = ["setuptools>=61.0"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "databank"
  6. version = "0.0.1"
  7. description = "Databank - abstract-only initialization"
  8. readme = "README.md"
  9. requires-python = ">=3.9"
  10. license = { file = "LICENSE" }
  11. [tool.setuptools]
  12. package-dir = {"" = "src"}
  13. [tool.setuptools.packages.find]
  14. where = ["src"]
  15. include = ["databank*"]
  16. [tool.pytest.ini_options]
  17. addopts = "-q"
  18. pythonpath = ["src"]
  19. # Optional: Lint settings (no dependency changes here; for reference only)
  20. [tool.pylint.main]
  21. py-version = "3.9"
  22. jobs = 0
  23. recursive = true
  24. [tool.pylint.messages_control]
  25. disable = [
  26. "too-few-public-methods", # common for ABCs/interfaces
  27. "too-many-arguments", # allowed in abstract signatures
  28. "too-many-instance-attributes",
  29. ]
  30. enable = [
  31. "C0116", # missing-function-docstring (kept enabled, already addressed)
  32. ]
  33. [tool.pylint.format]
  34. max-line-length = 100
  35. [tool.pylint.basic]
  36. good-names = [
  37. "db", "id", "url", "raw", "exc", "tb"
  38. ]
  39. # Optional: Ruff configuration (only active if ruff is installed in your env)
  40. [tool.ruff]
  41. line-length = 100
  42. target-version = "py39"
  43. extend-select = [
  44. "E", # pycodestyle errors
  45. "F", # pyflakes
  46. "N", # pep8-naming
  47. ]
  48. extend-ignore = [
  49. # Allow short names in specific contexts (already handled via pylint good-names)
  50. ]
  51. # Optional: mypy configuration (only active if mypy is installed in your env)
  52. [tool.mypy]
  53. python_version = "3.9"
  54. warn_return_any = true
  55. warn_unused_ignores = true
  56. ignore_missing_imports = true
  57. no_implicit_optional = false
  58. strict_optional = false
  59. disallow_untyped_defs = false