mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
7d39e73c57
commit
8799bffc34
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user