zulip/tools
Anders Kaseorg 69730a78cc python: Use trailing commas consistently.
Automatically generated by the following script, based on the output
of lint with flake8-comma:

import re
import sys

last_filename = None
last_row = None
lines = []

for msg in sys.stdin:
    m = re.match(
        r"\x1b\[35mflake8    \|\x1b\[0m \x1b\[1;31m(.+):(\d+):(\d+): (\w+)", msg
    )
    if m:
        filename, row_str, col_str, err = m.groups()
        row, col = int(row_str), int(col_str)

        if filename == last_filename:
            assert last_row != row
        else:
            if last_filename is not None:
                with open(last_filename, "w") as f:
                    f.writelines(lines)

            with open(filename) as f:
                lines = f.readlines()
            last_filename = filename
        last_row = row

        line = lines[row - 1]
        if err in ["C812", "C815"]:
            lines[row - 1] = line[: col - 1] + "," + line[col - 1 :]
        elif err in ["C819"]:
            assert line[col - 2] == ","
            lines[row - 1] = line[: col - 2] + line[col - 1 :].lstrip(" ")

if last_filename is not None:
    with open(last_filename, "w") as f:
        f.writelines(lines)

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-06-11 16:04:12 -07:00
..
ci ci: Setup production job for Focal. 2020-06-08 21:59:57 -07:00
circleci python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
documentation_crawler python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
droplets python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
i18n python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
lib python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
linter_lib python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
setup python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
test-install scripts: Remove Xenial and Stretch support from installation scripts. 2020-04-22 10:00:38 -07:00
tests python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
wsl tools: Add script to start database services for WSL. 2020-04-11 12:05:33 -07:00
zulip-export python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
README.md cleanup: Delete trailing newlines. 2019-08-06 23:29:11 -07:00
__init__.py
build-docs docs: Replace Makefile based on output of newer sphinx-quickstart. 2019-12-02 18:39:33 -08:00
build-release-tarball build-release-tarball: Add umask override. 2020-06-08 21:57:05 -07:00
cache-zulip-git-version version: Only let `git describe` match tags beginning with a digit. 2019-10-24 14:54:45 -07:00
check-capitalization i18n: Move static/locale back to locale. 2019-07-02 14:57:55 -07:00
check-frontend-i18n python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
check-issue-labels python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
check-openapi openapi: Add test for validating examples. 2020-05-12 23:03:06 -07:00
check-provision python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
check-templates python: Replace silly uses of filter(). 2020-06-09 23:31:59 -07:00
check-thirdparty lint: Check docs/THIRDPARTY for format errors. 2020-05-02 10:10:22 -07:00
clean-branches text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
clean-repo
commit-message-lint docs: Use consistent spelling of CircleCI. 2020-04-28 11:26:58 -07:00
commit-msg Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
conf.ini-template
coveragerc test-backend: Remove rate_limiter from not_yet_fully_covered. 2020-04-15 11:20:37 -07:00
create-test-api-docs python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
debug-require-webpack-plugin.ts webpack: Generalize debug-require-webpack-plugin interface. 2020-02-25 14:01:06 -08:00
debug-require.js webpack: Generalize debug-require-webpack-plugin interface. 2020-02-25 14:01:06 -08:00
deploy-branch Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
diagnose python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
documentation.vnufilter test-documentation: Validate HTML with vnu.jar. 2019-06-27 14:53:21 -07:00
duplicate_commits.json tools: Move duplicate_commits.json file to tools directory. 2020-04-07 16:06:29 -07:00
fetch-contributor-data python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
fetch-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
fetch-rebase-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
find-unused-css tools: Convert fix-unused-css to look at zulip.scss. 2020-04-21 14:12:57 -07:00
generate-integration-docs-screenshot python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
lint semgrep: Use pattern-where-python operator to filter patterns. 2020-05-20 09:37:26 -07:00
message-screenshot.js tools: Move screenshot captured message to Python. 2020-04-28 13:00:09 -07:00
pre-commit lint: Add --skip arg to replace --no-gitlint/mypy. 2019-06-18 11:32:04 -07:00
pretty-print-html python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
provision ci: Remove the need of using TRAVIS in env. 2020-04-21 14:46:40 -07:00
push-to-pull-request reset-to-pull-request: Add a usage message. 2020-02-11 14:45:17 -08:00
rebuild-dev-database db tools: Rename do-destroy-*database. 2020-04-22 09:24:42 -07:00
rebuild-test-database populate_db: Add option to specify max no of topics to create. 2020-05-04 09:41:31 -07:00
release-tarball-exclude.txt tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
renumber-migrations python: Convert assignment type annotations to Python 3.6 style. 2020-04-24 13:06:54 -07:00
reset-to-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
review python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
run-dev.py python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
run-mypy python: Convert assignment type annotations to Python 3.6 style. 2020-04-24 13:06:54 -07:00
run-tsc tsconfig: Move to top level. 2019-11-04 18:12:11 -08:00
run-yarn-deduplicate yarn.lock: Share duplicate packages with yarn-deduplicate. 2019-09-02 19:30:09 -07:00
semgrep.yml install-semgrep: Upgrade semgrep to 0.9.0. 2020-06-05 09:35:11 -07:00
setup-git-repo Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
show-profile-results
stop-run-dev python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test-all tests: Make puppeteer tests run in full suites and CircleCI. 2020-06-03 17:39:35 -07:00
test-api python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
test-backend python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
test-documentation test-documentation: Invoke sphinx-build via make instead of directly. 2019-12-02 18:39:33 -08:00
test-help-documentation test-help-documentation: Bind vnu.jar to 127.0.0.1. 2019-06-28 18:18:29 -07:00
test-js-with-casper
test-js-with-node python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
test-js-with-puppeteer python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
test-locked-requirements travis: Remove Travis unwanted code. 2020-04-28 11:11:23 -07:00
test-migrations requirements: Update Python requirements. 2020-06-03 17:23:20 -07:00
test-queue-worker-reload python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
test-run-dev python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
test-tools python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
update-locked-requirements update-locked-requirements: Generate prod locks from dev locks. 2020-04-18 13:09:51 -07:00
update-prod-static update-prod-static: Remove unused authors-not-required. 2020-04-25 15:39:03 -07:00
update-zuliprc-api-field python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
webpack python: Use trailing commas consistently. 2020-06-11 16:04:12 -07:00
webpack-helpers.ts js: Automatically convert var to let and const in more files. 2019-11-20 14:10:47 -08:00
webpack.assets.json auth: Use the clipboard instead of zulip:// for desktop auth flow. 2020-04-30 16:45:00 -07:00
webpack.config.ts tsconfig: Enable resolveJsonModule. 2020-05-26 23:33:40 -07:00
zanitizer docs: Avoid hardcoded /tmp paths in miscellaneous documentation. 2019-01-15 16:16:12 -08:00
zanitizer_config.pm.sample zanitizer_config.pm.sample: keep_file → scrub_filename 2018-09-23 20:42:27 -07:00

README.md

This directory contains scripts that are used in building, managing, testing, and other forms of work in a Zulip development environment. Note that tools that are also useful in production belong in scripts/ or should be Django management commands.

For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.