From 44610632bb360706525d2c1d10b8675eaacef08d Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 10:23:44 +0000 Subject: [PATCH] Initial commit: Add git-commit-message-linter project --- pyproject.toml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..94f53e5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[project] +name = "git-commit-message-linter" +version = "1.0.0" +description = "A Python CLI tool that validates git commit messages against configurable patterns" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.9" +authors = [ + {name = "Git Commit Message Linter Contributors"} +] +keywords = ["git", "commit", "linter", "conventional-commits", "cli"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] + +dependencies = [ + "click>=8.0", + "pyyaml>=6.0", + "regex>=2023.0", + "gitpython>=3.1", + "colorama>=0.4.6", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.0", + "pytest-cov>=4.0", + "flake8>=6.0", + "black>=23.0", +] + +[project.scripts] +commit-linter = "commit_linter.cli:main" + +[project.urls] +Homepage = "https://github.com/example/git-commit-message-linter" +Repository = "https://github.com/example/git-commit-message-linter" +Issues = "https://github.com/example/git-commit-message-linter/issues" + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_classes = ["Test*"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.black] +line-length = 100 +target-version = ['py39'] + +[tool.flake8] +max-line-length = 100 +exclude = ["__pycache__", ".git", "*.egg-info"]