gecko-dev/dom/push/test/xpcshell
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
..
PushServiceHandler.js
PushServiceHandler.manifest
broadcast_handler.jsm
head-http2.js
head.js
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
test_broadcast_success.js
test_clearAll_successful.js
test_clear_forgetAboutSite.js
test_clear_origin_data.js
test_crypto.js
test_crypto_encrypt.js
test_drop_expired.js
test_handler_service.js
test_notification_ack.js
test_notification_data.js
test_notification_duplicate.js
test_notification_error.js
test_notification_incomplete.js
test_notification_version_string.js
test_observer_data.js
test_observer_remoting.js
test_permissions.js
test_quota_exceeded.js
test_quota_observer.js
test_quota_with_notification.js
test_reconnect_retry.js
test_record.js
test_register_5xxCode_http2.js
test_register_case.js
test_register_flush.js
test_register_invalid_channel.js
test_register_invalid_endpoint.js
test_register_invalid_json.js
test_register_no_id.js
test_register_request_queue.js
test_register_rollback.js
test_register_success.js
test_register_timeout.js
test_register_wrong_id.js
test_register_wrong_type.js
test_registration_error.js
test_registration_error_http2.js
test_registration_missing_scope.js
test_registration_none.js
test_registration_success.js
test_registration_success_http2.js
test_resubscribe_4xxCode_http2.js
test_resubscribe_5xxCode_http2.js
test_resubscribe_listening_for_msg_error_http2.js
test_retry_ws.js
test_service_child.js
test_service_parent.js
test_unregister_empty_scope.js
test_unregister_error.js
test_unregister_invalid_json.js
test_unregister_not_found.js
test_unregister_success.js
test_unregister_success_http2.js
test_updateRecordNoEncryptionKeys_http2.js
test_updateRecordNoEncryptionKeys_ws.js
xpcshell.ini