Alex Vandiver
3476f63dca
compare-settings-to-template: Handle prod_settings_template renaming.
2022-04-28 14:52:38 -07:00
Alex Vandiver
b6b6faa404
compare-settings-to-template: Simplify and dedent logic.
2022-04-28 14:52:38 -07:00
Alex Vandiver
d205050ab0
compare-settings-to-template: Fetch 100 per pagination.
2022-04-28 14:52:38 -07:00
Alex Vandiver
d79776f80d
compare-settings-to-template: Paginate through all tags.
...
The default page size is 30, which means this only goes back to 4.6 at
present, due to starting with `shared-...` and old `enterprise-...`
tags.
2022-04-28 14:52:38 -07:00
Tim Abbott
73d503995a
scripts: Fix running compare-settings-to-template from any CWD.
...
This matches the number of dirname() calls for other files in its
directory.
Fixes #20489 .
2021-12-07 14:45:53 -08:00
Anders Kaseorg
ad5f0c05b5
python: Remove default "utf8" argument for encode(), decode().
...
Partially generated by pyupgrade.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-08-02 15:53:52 -07:00
Anders Kaseorg
1760897a8c
python: Remove default "r" mode for open().
...
Generated automatically by pyupgrade.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-08-02 15:53:52 -07:00
Alex Vandiver
4c88da8ed9
scripts: Tool to find the diff to an original settings.py prod template.
...
This hits the unauthenticated Github API to get the list of tags,
which is rate-limited to 60 requests per hour. This means that the
tool can only be run 60 times per hour before it starts to exit with
errors, but that seems like a reasonable limit for the moment.
2021-04-27 21:50:33 -07:00