zulip/tools
Robert Hönig 41e6704b99 custom linter rules test: Add pattern test.
The pattern test method `test_rule_patterns` tests each rule by
fetching two strings from it: `test_good` and `test_bad`. Each
string is then presented as an input file to `custom_check_file`,
which should return True or False.
All lines in a string need to end with `\n`. Since the linter
expects an additional newline at the end of a file, the test case
adds `\n` to each string on top of that.

Fixes #6320.
2017-09-25 10:53:06 +02:00
..
documentation_crawler requirements: Remove pathlib2. 2017-08-23 10:00:21 -07:00
lib zulip_bots: Generate static files during provisioning. 2017-09-22 15:14:42 -07:00
linter_lib custom linter rules test: Add pattern test. 2017-09-25 10:53:06 +02:00
setup build_emoji: Remove an unnecessary check for symlink support. 2017-09-24 04:51:33 -07:00
tests custom linter rules test: Add pattern test. 2017-09-25 10:53:06 +02:00
travis travis: Log the Python version. 2017-09-06 13:48:50 -07:00
zulip-export linter: Add lint rule banning 'import os.path' 2017-09-22 10:32:21 -07:00
README.md docs: Add README.md files for scripts/ and tools/. 2017-01-17 11:01:27 -08:00
__init__.py Add __init__.py to tools/ and tools/setup/. 2016-07-20 18:20:37 -07:00
build-deb Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
build-docs tools: Add wrapper tool 'build-docs' for building documentation. 2017-06-14 20:16:02 -07:00
build-release-tarball py3: Cut out the `build-release-tarball --py3` flag. 2017-08-16 17:54:43 -07:00
check-capitalization py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
check-css py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
check-frontend-i18n py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
check-issue-labels py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
check-provision py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
check-swagger lint: Ban non-unique operationIds in Swagger. 2017-06-26 22:02:26 -04:00
check-templates message_edit: Eliminat whitespace in recipient row controls. 2017-08-27 22:18:29 -07:00
check-urls py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
clean-branches tools: Update clean-branches to clean review branches. 2017-06-01 21:55:33 -07:00
clean-repo clean-repo: Revert optimization to .pyc removal. 2017-07-30 17:24:55 -07:00
commit-message-lint docs: Fix spelling of Travis CI. 2017-07-31 09:36:22 -07:00
commit-msg lint: Check if commit message is not empty before running gitlint. 2017-06-25 11:29:14 -04:00
compile-handlebars-templates py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
conf.ini-template Add tool for scanning issues without area labels. 2017-02-03 09:59:35 -08:00
coveragerc python3: Remove six.PY2/six.PY3 checks. 2017-08-25 11:06:43 -07:00
create-test-api-docs py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
deploy-branch Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
deployment-lock-ctl Improve shell quoting hygiene 2015-09-25 23:25:08 -04:00
diagnose requirements: Replace py3_dev.txt with dev_lock.txt. 2017-08-22 10:10:57 -07:00
django-template-graph Add support for running OpenBSD in development environment. 2016-01-21 22:33:55 -08:00
do-destroy-rebuild-database provision: Don't regenerate dev database unnecessarily. 2017-06-02 13:27:34 -07:00
do-destroy-rebuild-test-database Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
fetch-pull-request tools: Add script to see PRs as authors intended. 2017-06-01 21:55:08 -07:00
fetch-rebase-pull-request git tools: Make error messages more clear. 2017-05-08 10:51:59 -07:00
find-add-class lint: Only run find_add_class when JS files change. 2017-08-27 13:51:06 -07:00
find-unused-css Add hackish tool for finding unused CSS. 2016-04-01 09:34:46 -07:00
get-handlebar-vars py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
html-grep py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
inline-email-css tools: Create tool for inlining email CSS during provision. 2017-09-16 07:17:48 -07:00
js-dep-visualizer.py js-dep-visualizer: Report the PNG file as well. 2017-08-25 10:43:37 -07:00
lint lint: Only run find_add_class when JS files change. 2017-08-27 13:51:06 -07:00
lister.py python: Add lint rule banning 'from os.path import'. 2017-09-22 04:55:38 -07:00
minify-js py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
munge_postgres_logs.pl
optimize-svg tools: Add optimize-svg tool for checking for unoptimized SVG files. 2017-05-30 11:15:56 -07:00
pre-commit linter: Replace --pep8 with new --frontend/--backend options. 2017-08-27 13:50:53 -07:00
pretty-print-html py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
provision py3: Rely on the shebang to invoke provision too. 2017-08-16 17:54:43 -07:00
renumber-migrations renumber-migrations: Fix last_correct_migration code. 2017-09-22 07:51:58 -07:00
replace-tarball-shebang py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
replacer.py tools: Add inline string replacer for files. 2017-08-17 09:03:35 -07:00
reset-to-pull-request git tools: Make error messages more clear. 2017-05-08 10:51:59 -07:00
review Fix tools/review for python3. 2017-08-17 17:40:24 -04:00
run-dev-queue-processors py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
run-dev.py py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
run-mypy run-mypy: Stop running `mypy --py2`. 2017-08-16 17:54:43 -07:00
send_github_payloads.py py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
setup-git-repo lint: Add checks for commit messages using gitlint. 2017-04-21 13:45:12 -07:00
show-profile-results.py mypy: Remove type: ignores not needed in Python 3. 2017-08-25 11:04:20 -07:00
start-dockers Move docker development environment scripts to tools/. 2016-06-27 13:38:06 -07:00
stop_run_dev py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
test-all tools/test-all: Split `tools/lint` to match Travis scripts. 2017-08-29 15:42:01 -07:00
test-all-docker Move docker development environment scripts to tools/. 2016-06-27 13:38:06 -07:00
test-api tools: Fix running full-stack tests from tools/ directory. 2017-09-17 11:12:51 -07:00
test-backend profiling: Add snakeviz to dev tools. 2017-09-06 13:46:24 -07:00
test-documentation tools: Add wrapper tool 'build-docs' for building documentation. 2017-06-14 20:16:02 -07:00
test-help-documentation.py tools: Fix running full-stack tests from tools/ directory. 2017-09-17 11:12:51 -07:00
test-js-with-casper casper: Rename frontend_tests/run to clarify it uses casper. 2015-10-28 10:11:47 -07:00
test-js-with-node py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
test-migrations test-migrations: Fix error code bug. 2017-07-10 16:20:47 -07:00
test-queue-worker-reload py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
test-run-dev py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
test-tools mypy: Remove type: ignores not needed in Python 3. 2017-08-25 11:04:20 -07:00
update-authors-json mypy: Adjust check of json from github in update-authors-json. 2017-08-25 12:04:15 -07:00
update-locked-requirements deps: Adjust the header comments in lock files to reflect our tools. 2017-09-15 00:23:20 -07:00
update-prod-static zulip_bots: Generate static files during provisioning. 2017-09-22 15:14:42 -07:00
webpack py3: Switch almost all shebang lines to use `python3`. 2017-08-16 17:54:43 -07:00
webpack.assets.json Extract /integrations code from landing-page into separate bundle. 2017-08-10 10:21:53 -07:00
webpack.config.ts webpack: jQuery and underscore should be compilied normally to make errors readable. 2017-08-05 19:53:56 -07:00
zanitizer zanitizer: Remove -- argument that confuses some Git verisons 2015-09-25 00:46:00 -07:00
zanitizer_config.pm.sample zanitizer: Support renaming files 2015-09-24 18:10:02 -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 http://zulip.readthedocs.io/en/latest/directory-structure.html.