gecko-dev/dom/bindings
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
..
crashtests Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
docs
mozwebidlcodegen Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
parser Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
test Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
AtomList.h
BindingCallContext.h Bug 1618011 part 2. Add a BindingCallContext class. r=peterv 2020-03-06 23:05:15 +00:00
BindingDeclarations.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-05-09 14:51:53 +00:00
BindingIPCUtils.h
BindingUtils.cpp Bug 1668785: Remove using declarations from namespace level in Proxy.h. r=mgaudet 2020-10-02 12:51:03 +00:00
BindingUtils.h Bug 1668825 - Remove unused onChild return value r=sfink 2020-10-05 07:55:13 +00:00
Bindings.conf Bug 1646165 - Implement FOG's JavaScript API via WebIDL. r=chutten,webidl,emilio,smaug 2020-10-21 11:36:46 +00:00
CallbackFunction.h Bug 1632439 - Make CallbackObject methods return JSObject pointers rather than handles r=peterv 2020-05-21 14:09:02 +00:00
CallbackInterface.cpp Bug 1632439 - Make CallbackObject methods return JSObject pointers rather than handles r=peterv 2020-05-21 14:09:02 +00:00
CallbackInterface.h Bug 1618011 part 5. Use a BindingCallContext for Web IDL callback guts. r=peterv 2020-03-06 23:05:16 +00:00
CallbackObject.cpp Bug 1666419: Assert IsSafeToRunScript. r=emilio 2020-09-28 06:29:44 +00:00
CallbackObject.h Bug 1663365 - Move various Object-related functions to a new js/public/Object.h header. r=jandem 2020-09-08 22:55:38 +00:00
Codegen.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
Configuration.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
DOMExceptionNames.h
DOMJSClass.h Bug 1665797 - Add a big comment about NativeProperties. r=mccr8 DONTBUILD 2020-09-24 05:07:44 +00:00
DOMJSProxyHandler.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-09-20 10:14:09 +00:00
DOMJSProxyHandler.h Bug 1663365 - Move DOM proxy-related details (including expand support) to separate headers out of jsfriendapi.h. r=jandem 2020-09-08 22:57:14 +00:00
DOMString.h
ErrorIPCUtils.h
ErrorResult.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-07-04 09:38:43 +00:00
Errors.msg Bug 1621174 - Fix error handling for setting KeyframeEffect.pseudoElement. r=birtles,smaug 2020-03-12 00:34:46 +00:00
Exceptions.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
Exceptions.h Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
FakeString.h Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj 2020-08-21 09:54:48 +00:00
GenerateCSS2PropertiesWebIDL.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
IterableIterator.cpp
IterableIterator.h Bug 1652002 - Remove some unnecessary includes from BindingUtils.h. r=peterv 2020-07-15 15:34:49 +00:00
JSSlots.h
Makefile.in Bug 1670357 - Remove `make` targets for cleaning: `clean`, `realclean`, `clobber`, `distclean`, `clobber_all`, `everything` r=firefox-build-system-reviewers,mhentges 2020-10-15 20:37:18 +00:00
NonRefcountedDOMObject.h
Nullable.h
PinnedStringId.h Bug 1653228 - Move PinnedStringId to a separate header. r=peterv 2020-07-22 15:13:21 +00:00
PrimitiveConversions.h Bug 1618011 part 6. Pass a BindingCallContext (if neded) and source description to primitive conversions. r=peterv 2020-03-06 23:05:16 +00:00
ReadableStream.h
Record.h
RemoteObjectProxy.cpp Bug 1663365 - Move various Object-related functions to a new js/public/Object.h header. r=jandem 2020-09-08 22:55:38 +00:00
RemoteObjectProxy.h Bug 1643457 - Support ChromeOnly properties on remote proxies. r=mccr8 2020-06-05 12:45:40 +00:00
RootedDictionary.h Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
RootedOwningNonNull.h
RootedRefPtr.h
SimpleGlobalObject.cpp Bug 1663365 - Move various Object-related functions to a new js/public/Object.h header. r=jandem 2020-09-08 22:55:38 +00:00
SimpleGlobalObject.h Bug 1663365 - Move various Object-related functions to a new js/public/Object.h header. r=jandem 2020-09-08 22:55:38 +00:00
SpiderMonkeyInterface.h Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
ToJSValue.cpp Bug 1658946 - Wrap non-wrappercached interfaces more precisely in ToJSValue, r=peterv 2020-09-14 19:30:56 +00:00
ToJSValue.h Bug 1658946 - Wrap non-wrappercached interfaces more precisely in ToJSValue, r=peterv 2020-09-14 19:30:56 +00:00
TypedArray.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-02 15:29:15 +00:00
UnionMember.h
WebIDLGlobalNameHash.cpp Bug 1626584 - Make `dom/bindings` buildable outside of `unified-build` environment. r=sg 2020-10-16 15:04:52 +00:00
WebIDLGlobalNameHash.h
XrayExpandoClass.h
mach_commands.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
nsIScriptError.idl Bug 1654927 - Move js.msg and js::GetErrorMessage into a new js/public/friend directory so users of them don't have to depend on all of jsfriendapi.h. r=mgaudet 2020-07-29 04:44:50 +00:00
nsScriptError.cpp Bug 1639165 - Add an isFowardedFromContentProcess flag to nsIScriptError. r=baku. 2020-06-05 14:53:26 +00:00
nsScriptError.h Bug 1639165 - Add an isFowardedFromContentProcess flag to nsIScriptError. r=baku. 2020-06-05 14:53:26 +00:00
nsScriptErrorWithStack.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00