gecko-dev/parser/html
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
..
java 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
javasrc Bug 1425291 - Part 2. Add autocapitalize attribute to htmlparser. r=hsivonen 2020-09-15 14:26:14 +00:00
jArray.h
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
nsAHtml5TreeBuilderState.h
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h
nsHtml5AtomTable.cpp Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj 2020-06-23 05:05:36 +00:00
nsHtml5AtomTable.h
nsHtml5AttributeEntry.h
nsHtml5AttributeName.cpp Bug 1425291 - Part 2. Add autocapitalize attribute to htmlparser. r=hsivonen 2020-09-15 14:26:14 +00:00
nsHtml5AttributeName.h Bug 1425291 - Part 2. Add autocapitalize attribute to htmlparser. r=hsivonen 2020-09-15 14:26:14 +00:00
nsHtml5AutoPauseUpdate.h
nsHtml5ByteReadable.h
nsHtml5ContentCreatorFunction.h
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp Bug 1639392 - Merge nsIStyleSheetLinkingElement and nsStyleLinkElement, and call it LinkStyle. r=jwatt 2020-05-21 03:07:16 +00:00
nsHtml5DocumentBuilder.h
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp
nsHtml5ElementName.h
nsHtml5Highlighter.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
nsHtml5Highlighter.h
nsHtml5HtmlAttributes.cpp
nsHtml5HtmlAttributes.h
nsHtml5Macros.h
nsHtml5MetaScanner.cpp
nsHtml5MetaScanner.h
nsHtml5MetaScannerCppSupplement.h
nsHtml5MetaScannerHSupplement.h
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp Bug 1653335 - Remove uses of MakeSpan in return statements. r=froydnj 2020-08-07 07:42:50 +00:00
nsHtml5OwningUTF16Buffer.h Bug 1607762 - Make the refcount of nsHtml5OwningUTF16Buffer atomic. r=mccr8 2020-10-14 15:29:44 +00:00
nsHtml5Parser.cpp Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5Parser.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5PlainTextUtils.cpp
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsHtml5Portability.h
nsHtml5SVGLoadDispatcher.cpp
nsHtml5SVGLoadDispatcher.h
nsHtml5Speculation.cpp
nsHtml5Speculation.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5SpeculativeLoad.cpp Bug 1618536 - Preload for fonts, r=heycam,hsivonen 2020-05-11 14:14:32 +00:00
nsHtml5SpeculativeLoad.h Bug 1618536 - Preload for fonts, r=heycam,hsivonen 2020-05-11 14:14:32 +00:00
nsHtml5StackNode.cpp
nsHtml5StackNode.h
nsHtml5StateSnapshot.cpp
nsHtml5StateSnapshot.h
nsHtml5StreamListener.cpp
nsHtml5StreamListener.h
nsHtml5StreamParser.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
nsHtml5StreamParser.h Bug 1645313 - Instantiate mozilla::JapaneseDetector only when needed. r=m_kato 2020-06-23 01:40:53 +00:00
nsHtml5StreamParserPtr.h
nsHtml5String.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsHtml5String.h
nsHtml5StringParser.cpp Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5StringParser.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5Tokenizer.cpp Bug 1650090 - Stop reporting HTML4-specific parse errors. DONTBUILD NPOTB r=alchen 2020-08-03 11:03:02 +00:00
nsHtml5Tokenizer.h Bug 1650090 - Stop reporting HTML4-specific parse errors. DONTBUILD NPOTB r=alchen 2020-08-03 11:03:02 +00:00
nsHtml5TokenizerCppSupplement.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5TokenizerHSupplement.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Bug 1650329 - Improve message: bad start tag in noscript in head. r=alchen 2020-08-03 12:30:12 +00:00
nsHtml5TreeBuilder.h Bug 1650090 - Stop reporting HTML4-specific parse errors. DONTBUILD NPOTB r=alchen 2020-08-03 11:03:02 +00:00
nsHtml5TreeBuilderCppSupplement.h Bug 1669664 - Don't speculatively load scripts, etc inside a template element. r=hsivonen 2020-10-14 21:58:50 +00:00
nsHtml5TreeBuilderHSupplement.h Bug 1650329 - Improve message: bad start tag in noscript in head. r=alchen 2020-08-03 12:30:12 +00:00
nsHtml5TreeOpExecutor.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
nsHtml5TreeOpExecutor.h Bug 1618536 - Preload for fonts, r=heycam,hsivonen 2020-05-11 14:14:32 +00:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h
nsHtml5TreeOperation.cpp Bug 1653474 - Process META elements when it's inserted r=smaug 2020-08-05 16:32:57 +00:00
nsHtml5TreeOperation.h Bug 1653474 - Process META elements when it's inserted r=smaug 2020-08-05 16:32:57 +00:00
nsHtml5UTF16Buffer.cpp
nsHtml5UTF16Buffer.h
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp Bug 1610402 - static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio 2020-02-20 15:31:37 +00:00
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsParserUtils.cpp Bug 1666300 part 2 - Parse into an inert document. r=smaug 2020-10-23 12:48:52 +00:00
nsParserUtils.h