generated from sco1/py-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
PEP 639 specifies some constraints on the syntax used by license-files
:
Its value is an array of strings which MUST contain valid glob patterns, as specified below:
- Alphanumeric characters, underscores (
_
), hyphens (-
) and dots (.
) MUST be matched verbatim.- Special glob characters:
*
,?
,**
and character ranges:[]
containing only the verbatim matched characters MUST be supported. Within[...]
, the hyphen indicates a locale-agnostic range (e.g.a-z
, order based on Unicode code points). Hyphens at the start or end are matched literally.- Path delimiters MUST be the forward slash character (
/
). Patterns are relative to the directory containingpyproject.toml
, therefore the leading slash character MUST NOT be used.- Parent directory indicators (
..
) MUST NOT be used.
While some of these we can gain natively through using pathlib
's pattern language, we should be able to add a couple more explicit checks beyond this.
To be more explicit, the existing check-license-glob
should also be renamed, perhaps to check-glob-resolve
?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request