pyproject.toml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # ==============================================================================
  2. [build-system]
  3. # ==============================================================================
  4. requires = ["hatchling"]
  5. build-backend = "hatchling.build"
  6. # ==============================================================================
  7. [project]
  8. # ==============================================================================
  9. name = "only_show_green_results"
  10. dynamic = ["version"]
  11. readme = "README.rst"
  12. requires-python = ">=3.11"
  13. license = "AGPL-3.0-or-later"
  14. description = "The Green Web Foundation searx plugins"
  15. authors = [
  16. { name = "The Green Web Foundation", email = "chris@productscience.co.uk" },
  17. { name = "SearXNG Community", email = "markus.heiser@darmarit.de" },
  18. ]
  19. dependencies = [
  20. "flask_babel",
  21. ]
  22. [project.urls]
  23. Code = "https://github.com/return42/tgwf-searx-plugins"
  24. Homepage = "https://github.com/return42/tgwf-searx-plugins"
  25. "Issue tracker" = "https://github.com/return42/tgwf-searx-plugins/issues"
  26. # ==============================================================================
  27. [tool.hatch]
  28. # ==============================================================================
  29. [tool.hatch.version]
  30. path = "src/only_show_green_results/__init__.py"
  31. [tool.hatch.metadata]
  32. allow-direct-references = true
  33. # [tool.hatch.build.targets.sdist]
  34. # include = []
  35. # hatch env: default
  36. # ------------------
  37. [tool.hatch.envs.default]
  38. python = "3.13"
  39. dependencies = [
  40. "basedpyright==1.27.*",
  41. "black==25.1.*",
  42. "pylint==3.3.*",
  43. "isort==6.0.*",
  44. ]
  45. # FIXME: ..
  46. post-install-commands = [
  47. "python -m pip install --upgrade pip",
  48. "python -m pip install setuptools pyyaml",
  49. # "python -m pip install git+https://github.com/searxng/searxng.git@master",
  50. ]
  51. [tool.hatch.envs.default.scripts]
  52. fix = [
  53. "isort {args:./src}",
  54. "black {args:./src}",
  55. ]
  56. check = [
  57. "isort --diff {args:./src}",
  58. "black --check --diff {args:./src}",
  59. "pylint --output-format=parseable {args:./src}",
  60. "basedpyright {args:./src}",
  61. ]
  62. # ==============================================================================
  63. [tool.isort]
  64. # ==============================================================================
  65. profile = "black"
  66. atomic = true
  67. use_parentheses = true
  68. include_trailing_comma = true