From 2691b18699fa30c6ba964675253a89a564422b9c Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sun, 30 Mar 2025 16:49:09 +0000 Subject: [PATCH] feat: adopt PEP639 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1bc27cbf..a8263d3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: requirements-txt-fixer - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.9.10 + rev: v0.11.2 hooks: # Run the linter. - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 2710ff6b..edfa54bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=61", "setuptools-scm"] +requires = ["setuptools>=77", "setuptools-scm"] build-backend = "setuptools.build_meta" [project] @@ -7,7 +7,7 @@ name = "commit-check" description = "Check commit message formatting, branch naming, commit author, email, and more." readme = "README.rst" keywords = ["commit conventions", "conventional commits", "conventional branch", "branch naming", "commit-check", "message", "lint message", "devops"] -license = {text = "MIT License"} +license = "MIT" authors = [ { name = "Xianpeng Shen", email = "xianpeng.shen@gmail.com" }, ] @@ -16,11 +16,9 @@ dependencies = ["pyyaml"] classifiers = [ # https://pypi.org/pypi?%3Aaction=list_classifiers "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: MIT License", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", - "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",