pyproject.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [project]
  2. name = "rural-dict"
  3. description = "Privacy-respecting, NoJS-supporting Urban Dictionary frontend."
  4. license = "AGPL-3.0-or-later"
  5. readme = { file = "README.org", content-type = "text/plain" }
  6. requires-python = ">=3.12"
  7. authors = [
  8. { name = "Zubarev Grigoriy", email = "thirtysix@thirtysix.pw" },
  9. { name = "vlnst", email = "vlnst@bloat.cat" },
  10. { name = "Skylar Widulski", email = "cobra@vern.cc" },
  11. { name = "zortazert", email = "zortazert@matthewevan.xyz" },
  12. ]
  13. dependencies = [
  14. "beautifulsoup4~=4.12.3",
  15. "requests~=2.32.3",
  16. "flask~=3.0.3",
  17. "waitress~=3.0.0",
  18. ]
  19. dynamic = ["version"]
  20. [project.urls]
  21. "Source Code" = "https://git.vern.cc/cobra/rural-dict"
  22. "Issue Tracker" = "https://git.vern.cc/cobra/rural-dict/issues"
  23. [build-system]
  24. requires = ["hatchling"]
  25. build-backend = "hatchling.build"
  26. [tool.rye]
  27. managed = true
  28. universal = true
  29. dev-dependencies = []
  30. [tool.hatch.version]
  31. path = "src/rural_dict/__init__.py"
  32. [tool.hatch.metadata]
  33. allow-direct-references = true
  34. [tool.hatch.build.targets.wheel]
  35. packages = ["src/rural_dict"]
  36. [tool.hatch.build.targets.sdist]
  37. exclude = ["*.xcf"]
  38. [tool.ruff]
  39. target-version = "py312"
  40. line-length = 99
  41. exclude = [
  42. ".git",
  43. ".venv",
  44. ".idea",
  45. ".tests",
  46. "build",
  47. "dist",
  48. ]
  49. [tool.ruff.lint]
  50. select = [
  51. "E", # pycodestyle errors
  52. "W", # pycodestyle warnings
  53. "F", # pyflakes
  54. "I", # isort
  55. "N", # pep8-naming
  56. "S", # flake8-bandit
  57. "B", # flake8-bugbear
  58. "G", # flake8-logging-format
  59. "C4", # flake8-comprehensions
  60. "UP", # pyupgrade
  61. "PLC", # pylint conventions
  62. "PLE", # pylint errors
  63. "SIM", # flake8-simplify
  64. "RET", # flake8-return
  65. "YTT", # flake8-2020
  66. "DTZ", # flake8-datetimez
  67. "RUF", # ruff-specific rules
  68. "TCH", # flake8-type-checking
  69. "PTH", # flake8-use-pathlib
  70. "ASYNC", # flake8-async
  71. ]