Format the coding style across the codebase using "black" and manual tweaks

The main benefit of this commit is that the use of double quotes
is now consistent.
This commit is contained in:
mprahl
2019-04-25 17:58:44 -04:00
parent 559f0dd922
commit 66c3f82160
78 changed files with 9050 additions and 7438 deletions

View File

@@ -2,16 +2,8 @@ config = dict(
logging=dict(
loggers=dict(
# Quiet this guy down...
requests={
"level": "WARNING",
"propagate": True,
"handlers": ["console"],
},
module_build_service={
"level": "INFO",
"propagate": True,
"handlers": ["console"],
},
),
),
requests={"level": "WARNING", "propagate": True, "handlers": ["console"]},
module_build_service={"level": "INFO", "propagate": True, "handlers": ["console"]},
)
)
)

View File

@@ -1,4 +1 @@
config = {
'mbsconsumer': True,
'mbspoller': True,
}
config = {"mbsconsumer": True, "mbspoller": True}

View File

@@ -3,10 +3,8 @@ import os
config = {
# Just for dev.
"validate_signatures": False,
# Talk to the relay, so things also make it to composer.stg in our dev env
"active": True,
# Since we're in active mode, we don't need to declare any of our own
# passive endpoints. This placeholder value needs to be here for the tests
# to pass in Jenkins, though. \o/
@@ -14,10 +12,9 @@ config = {
"fedora-infrastructure": [
# Just listen to staging for now, not to production (spam!)
# "tcp://hub.fedoraproject.org:9940",
"tcp://stg.fedoraproject.org:9940",
],
"tcp://stg.fedoraproject.org:9940"
]
},
# Start of code signing configuration
# 'sign_messages': True,
# 'validate_signatures': True,
@@ -37,12 +34,11 @@ config = {
}
# developer's instance
if 'MODULE_BUILD_SERVICE_DEVELOPER_ENV' in os.environ and \
os.environ['MODULE_BUILD_SERVICE_DEVELOPER_ENV'].lower() in (
'1', 'on', 'true', 'y', 'yes'):
config['endpoints']['relay_outbound'] = ["tcp://fedmsg-relay:2001"]
config['relay_inbound'] = ["tcp://fedmsg-relay:2003"]
true_options = ("1", "on", "true", "y", "yes")
if os.environ.get("MODULE_BUILD_SERVICE_DEVELOPER_ENV", "").lower() in true_options:
config["endpoints"]["relay_outbound"] = ["tcp://fedmsg-relay:2001"]
config["relay_inbound"] = ["tcp://fedmsg-relay:2003"]
else:
# These configuration values are reasonable for most other configurations.
config['endpoints']['relay_outbound'] = ["tcp://127.0.0.1:4001"]
config['relay_inbound'] = ["tcp://127.0.0.1:2003"]
config["endpoints"]["relay_outbound"] = ["tcp://127.0.0.1:4001"]
config["relay_inbound"] = ["tcp://127.0.0.1:2003"]