Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ name = "clang_tools"
description = "Install clang-tools (clang-format, clang-tidy, clang-query, clang-apply-replacements) with pip"
readme = "README.rst"
keywords = ["clang", "clang-tools", "clang-extra", "clang-tidy", "clang-format", "clang-query", "clang-apply-replacements"]
license = {text = "MIT License"}
license = "MIT"
license-files = [ "LICENSE" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Critical Issue: Invalid project.license Format Causing Schema Validation Error

The new change sets the license as a bare string (license = "MIT"). However, the pipeline error indicates that the schema expects the project.license field to be unambiguously defined as a table—with either a "text" key or a "file" key—not as a plain string. To resolve this conflict, please update the license declaration to a table format. For example, the diff below would address the issue:

-license = "MIT"
+license = { text = "MIT" }

The accompanying license-files entry (line 11) is acceptable if you intend to signal where the license file is located.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
license = "MIT"
license-files = [ "LICENSE" ]
license = { text = "MIT" }
license-files = [ "LICENSE" ]

authors = [
{ name = "Xianpeng Shen", email = "xianpeng.shen@gmail.com" },
{ name = "Brendan Doherty", email = "2bndy5@gmail.com" },
Expand Down
Loading