pyproject.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. [build-system]
  2. requires = ["setuptools>=61.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "boilerplates"
  6. version = "0.1.0"
  7. description = "CLI tool for managing infrastructure boilerplates"
  8. readme = "README.md"
  9. requires-python = ">=3.9"
  10. license = "MIT"
  11. authors = [ {name = "Christian Lempa"} ]
  12. keywords = ["boilerplates", "cli", "infrastructure"]
  13. classifiers = [
  14. "Programming Language :: Python :: 3",
  15. "Operating System :: OS Independent",
  16. ]
  17. dependencies = [
  18. "typer[all]>=0.9.0",
  19. "rich>=13.0.0",
  20. "PyYAML>=6.0",
  21. "python-frontmatter>=1.0.0",
  22. "Jinja2>=3.0",
  23. "email-validator>=2.0.0",
  24. ]
  25. [project.scripts]
  26. boilerplates = "cli.__main__:run"
  27. [tool.setuptools.packages.find]
  28. include = ["cli*"]
  29. exclude = ["tests*", "scripts*"]
  30. [tool.ruff]
  31. # Extended line length for better readability
  32. line-length = 120
  33. # Python 3.9+ as minimum version
  34. target-version = "py39"
  35. # Exclude common directories
  36. exclude = [
  37. ".git",
  38. "__pycache__",
  39. ".venv",
  40. "venv",
  41. "build",
  42. "dist",
  43. "*.egg-info",
  44. ]
  45. [tool.ruff.lint]
  46. # Enable rule categories
  47. select = [
  48. "E", # pycodestyle errors
  49. "F", # Pyflakes
  50. "W", # pycodestyle warnings
  51. "I", # isort (import sorting)
  52. "N", # pep8-naming
  53. "UP", # pyupgrade (modern Python syntax)
  54. "B", # flake8-bugbear (likely bugs)
  55. "C4", # flake8-comprehensions
  56. "SIM", # flake8-simplify
  57. "RET", # flake8-return
  58. "ARG", # flake8-unused-arguments
  59. "PTH", # flake8-use-pathlib
  60. "PL", # Pylint
  61. "RUF", # Ruff-specific rules
  62. "T20", # flake8-print
  63. ]
  64. # Allow auto-fixing for these rules
  65. fixable = ["ALL"]
  66. unfixable = []
  67. [tool.ruff.format]
  68. # Use PEP 8 standard: 4 spaces for indentation
  69. indent-style = "space"
  70. # Use double quotes (consistent with Python conventions)
  71. quote-style = "double"
  72. # Unix line endings
  73. line-ending = "lf"
  74. [tool.ruff.lint.per-file-ignores]
  75. # CLI command functions need many parameters for command-line arguments
  76. "cli/core/module/base_module.py" = ["PLR0913"] # generate() needs all CLI options
  77. "cli/core/repo.py" = ["PLR0913"] # add() needs all library config options