Skip to content

Commit

Permalink
Fix tupled non-tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Oct 27, 2023
1 parent 7464c07 commit 5143fca
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions bedrock/base/management/commands/update_www_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def refresh_db_values(extra=None):
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def output(self, msg):
if not self.quiet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def clear_positions(apps, schema_editor):


def sync_greenhouse(apps, schema_editor):
management.call_command("sync_greenhouse"),
management.call_command("sync_greenhouse")


class Migration(migrations.Migration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def output(self, msg):
if not self.quiet:
Expand Down
4 changes: 2 additions & 2 deletions bedrock/contentful/management/commands/update_contentful.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ def add_arguments(self, parser) -> None:
dest="quiet",
default=False,
help="If no error occurs, swallow all output.",
),
)
parser.add_argument(
"-f",
"--force",
action="store_true",
dest="force",
default=False,
help="Load the data even if nothing new from Contentful.",
),
)

def log(self, msg) -> None:
if not self.quiet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def output(self, msg):
if not self.quiet:
Expand Down
4 changes: 2 additions & 2 deletions bedrock/legal_docs/management/commands/update_legal_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def output(self, msg):
if not self.quiet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def __init__(self, stdout=None, stderr=None, no_color=False):
super().__init__(stdout, stderr, no_color)

def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("--database", default="default", help=("Specifies the database to use, if using a db. " 'Defaults to "default".')),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("--database", default="default", help=("Specifies the database to use, if using a db. " 'Defaults to "default".'))
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def handle(self, *args, **options):
# don't really care about deleted files. almost never happens in p-d.
Expand Down
4 changes: 2 additions & 2 deletions bedrock/mozorg/management/commands/update_webvision_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def output(self, msg):
if not self.quiet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")

def handle(self, *args, **options):
newsletters = basket.get_newsletters()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")

def handle(self, *args, **options):
if settings.POCKET_CONSUMER_KEY and settings.POCKET_ACCESS_TOKEN:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def output(self, msg):
if not self.quiet:
Expand Down
2 changes: 1 addition & 1 deletion bedrock/sitemaps/management/commands/fetch_sitemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Command(BaseCommand):
help = "Clones or updates sitemaps info from github"

def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")

def handle(self, *args, **options):
if options["quiet"]:
Expand Down
4 changes: 2 additions & 2 deletions bedrock/sitemaps/management/commands/update_sitemaps_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Command(BaseCommand):
help = "Clones or updates sitemaps info from github"

def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument("-f", "--force", action="store_true", dest="force", default=False, help="Load the data even if nothing new from git.")

def handle(self, *args, **options):
if options["quiet"]:
Expand Down
2 changes: 1 addition & 1 deletion bedrock/wordpress/management/commands/update_wordpress.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@alert_sentry_on_exception
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")

def handle(self, *args, **options):
errors = []
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n_utils/management/commands/l10n_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class Command(BaseCommand):
help = "Clones or updates l10n info from github"

def add_arguments(self, parser):
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")
parser.add_argument(
"-c", "--clean", action="store_true", dest="clean", default=False, help="Remove old repos if they exist and do fresh clones."
),
)

def handle(self, *args, **options):
if options["quiet"]:
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n_utils/management/commands/lint_ftl.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def add_arguments(self, parser):
default=settings.FLUENT_LOCAL_PATH,
help="Check files in the external Fluent Repo instead of the bedrock files.",
)
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output."),
parser.add_argument("-q", "--quiet", action="store_true", dest="quiet", default=False, help="If no error occurs, swallow all output.")

def handle(self, *args, **options):
self.parser = NoisyFluentParser()
Expand Down

0 comments on commit 5143fca

Please sign in to comment.