github web-platform-tests/wpt merge_pr_47098

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
14 months ago

Add exclusion syntax for WEB_FEATURES.yml (#47098)

  • Add exclusion syntax for WEB_FEATURES.yml

Before this change, developers needed to list explicitly list all files
in case there was one file that they wanted to ignore.

This change allows developers to use an exclusion syntax by prefixing
the file with a ! mark.

For example, given the following yaml:

features:
- name: featureA
  files:
  - grid*
  - !grid-foo.html

All files with grid in that directory will match except grid-foo.html

This avoids the need to list all files explicitly when only a few should be omitted.

  • use py3.8 friendly removeprefix

  • Update tools/metadata/webfeatures/schema.py

Co-authored-by: Philip Jägenstedt philip@foolip.org


Co-authored-by: Philip Jägenstedt philip@foolip.org

Don't miss a new wpt release

NewReleases is sending notifications on new releases.