gecko-dev/docshell/test/moz.build
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00

138 lines
3.7 KiB
Plaintext

with Files("**"):
BUG_COMPONENT = ("Core", "DOM: Navigation")
with Files("browser/*_bug234628*"):
BUG_COMPONENT = ("Core", "Internationalization")
with Files("browser/*_bug349769*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("browser/*_bug388121*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("browser/*_bug655270*"):
BUG_COMPONENT = ("Toolkit", "Places")
with Files("browser/*_bug655273*"):
BUG_COMPONENT = ("Firefox", "Menus")
with Files("browser/*_bug852909*"):
BUG_COMPONENT = ("Firefox", "Menus")
with Files("browser/*bug92473*"):
BUG_COMPONENT = ("Core", "Internationalization")
with Files("browser/*loadDisallowInherit*"):
BUG_COMPONENT = ("Firefox", "Address Bar")
with Files("browser/*tab_touch_events*"):
BUG_COMPONENT = ("Core", "DOM: Events")
with Files("browser/*timelineMarkers*"):
BUG_COMPONENT = ("DevTools", "Performance Tools (Profiler/Timeline)")
with Files("browser/*ua_emulation*"):
BUG_COMPONENT = ("DevTools", "General")
with Files("chrome/*112564*"):
BUG_COMPONENT = ("Core", "Networking: HTTP")
with Files("chrome/*303267*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("chrome/*453650*"):
BUG_COMPONENT = ("Core", "Layout")
with Files("chrome/*565388*"):
BUG_COMPONENT = ("Core", "Widget")
with Files("chrome/*582176*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("chrome/*608669*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("chrome/*690056*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("chrome/*92598*"):
BUG_COMPONENT = ("Core", "Networking: HTTP")
with Files("iframesandbox/**"):
BUG_COMPONENT = ("Core", "Security")
with Files("iframesandbox/*marquee_event_handlers*"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("mochitest/*1045096*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*1151421*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*402210*"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("mochitest/*509055*"):
BUG_COMPONENT = ("Firefox", "Bookmarks & History")
with Files("mochitest/*511449*"):
BUG_COMPONENT = ("Core", "Widget: Cocoa")
with Files("mochitest/*551225*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*570341*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*580069*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*637644*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*640387*"):
BUG_COMPONENT = ("Core", "DOM: Events")
with Files("mochitest/*668513*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*797909*"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("mochitest/*forceinheritprincipal*"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("navigation/*13871.html"):
BUG_COMPONENT = ("Core", "Security")
with Files("navigation/*386782*"):
BUG_COMPONENT = ("Core", "DOM: Editor")
with Files("navigation/*430624*"):
BUG_COMPONENT = ("Core", "DOM: Editor")
with Files("navigation/*430723*"):
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
with Files("navigation/*child*"):
BUG_COMPONENT = ("Core", "Security")
with Files("navigation/*opener*"):
BUG_COMPONENT = ("Core", "Security")
with Files("navigation/*reserved*"):
BUG_COMPONENT = ("Core", "Security")
with Files("navigation/*triggering*"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("unit/*442584*"):
BUG_COMPONENT = ("Core", "Networking: Cache")
with Files("unit/*setUsePrivateBrowsing*"):
BUG_COMPONENT = ("Firefox", "Extension Compatibility")