Anders Kaseorg
6e4c3e41dc
python: Normalize quotes with Black.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
11741543da
python: Reformat with Black, except quotes.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
70aa9903b9
list_realms: Convert percent formatting to "".format.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-01-26 13:27:22 -08:00
Anders Kaseorg
b4597a8ca8
python: Elide default for store_{true,false} argparse arguments.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-09-03 16:17:14 -07:00
Anders Kaseorg
a5dbab8fb0
python: Remove redundant dest for argparse arguments.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-09-02 11:04:10 -07:00
Tim Abbott
8e7ce7cc79
python: Sort migrations/management command imports with isort.
...
This is a preparatory commit for using isort for sorting all of our
imports, merging changes to files where we can easily review the
changes as something we're happy with.
These are also files with relatively little active development, which
means we don't expect much merge conflict risk from these changes.
2020-01-14 13:07:47 -08:00
Anders Kaseorg
becef760bf
cleanup: Delete leading newlines.
...
Previous cleanups (mostly the removals of Python __future__ imports)
were done in a way that introduced leading newlines. Delete leading
newlines from all files, except static/assets/zulip-emoji/NOTICE,
which is a verbatim copy of the Apache 2.0 license.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-08-06 23:29:11 -07:00
Tim Abbott
22f39ff8e7
list_realms: Display '' as string_id for root domain realm.
2018-12-30 10:36:18 -08:00
Tim Abbott
e48c9245ff
list_realms: Fix the --all option.
...
I don't think anyone's used this in years, but it could be handy.
2018-12-30 10:36:18 -08:00
Hudda
50e14dbe97
list_realms: Print the full domains of the organizations.
...
This adds a column to display the full domains of realms. Tweaked by
tabbott to use fewer columns.
Fixes part of #11015 .
2018-12-30 10:36:00 -08:00
Tim Abbott
f04d6ed19e
python: Sort imports in management commands.
2017-11-15 15:43:47 -08:00
rht
a311678190
zerver/management: Use python 3 syntax for typing.
2017-10-26 15:24:56 -07:00
rht
32650c8fdc
zerver/management: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
e239e97351
zerver/management: Remove absolute_import.
2017-09-27 10:00:39 -07:00
Vishnu Ks
e7f5da83ac
management: Create list realms command.
...
Fixes #5917 .
2017-08-04 14:25:03 -07:00