[BE][Ez]: RUF200 - validate pyproject.toml metadata (#153543)

Since we have pyproject.toml metadata for [project] and [build-requires], let's turn on the linter rules which validates this optional metadata to make sure it's properly formatted and follows the correct schema for standard Python build tools.

Right now, incorrect metadata could silently error with how our CI is invoked or only provide warnings for invalid metadata. This check will help surface those errors.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153543
Approved by: https://github.com/albanD
This commit is contained in:
Aaron Gokaslan 2025-05-14 16:42:22 +00:00 committed by PyTorch MergeBot
parent 7d39e73c57
commit 8799bffc34

View File

@ -191,6 +191,7 @@ select = [
"RUF024", # from keys mutable
"RUF026", # default factory kwarg
"RUF030", # No print statement in assert
"RUF200", # validate pyproject.toml
"S324", # for hashlib FIPS compliance
"SLOT",
"TC",