Tim Abbott
d5dd7a27d5
Remove tools/deprecated/inject-messages.
2016-12-03 16:58:17 -08:00
Tim Abbott
1a161c6e33
eslint: Fix comma-dangle rules in JS support files.
...
This was done via eslint --fix.
2016-12-03 15:00:24 -08:00
Joy Chen
77938f6247
mypy: Annotate *bots/githook-post-receive*
2016-12-03 15:58:22 -06:00
Jason Le
144d82305d
mypy: Annotate puppet/zulip_ops.
2016-12-03 11:00:25 -08:00
bulat22101
a6f91064a2
pep8: Fix E129 violations
2016-12-03 10:56:36 -08:00
bulat22101
adebc75740
pep8: Fix E502 violations
2016-12-03 10:56:36 -08:00
Tim Abbott
8259adaba5
lint: Add custom lint check for console.log statements.
...
This was previously checked for by jslint, and eslint doesn't seem to
have a nice exclude rule for it.
2016-12-02 20:05:18 -08:00
kevv87
1fb9220354
lint: Remove old jslint linter.
...
Now that we're using eslint, jslint is no longer required.
2016-12-02 18:49:42 -08:00
Sidhant Bhavnani
8c0c12c1d9
pep8: Fix E303 violations.
2016-12-02 15:34:11 -08:00
Alex Huang
007b693cc7
pep8: Fix E131.
2016-12-01 23:16:47 -08:00
Alex Huang
c8ddea16c3
pep8: Fix E122.
2016-12-01 23:16:35 -08:00
AZtheAsian
62494eeb97
pep8: fix E201 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
7e14fe65ab
pep8: fix E202 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
1ba150fa85
pep8: Fix E203 violations
2016-12-01 20:37:57 -08:00
AZtheAsian
c23f9e0df7
pep8: Fix E111 violations
2016-12-01 14:18:11 -08:00
AZtheAsian
f7582f0050
pep8: Fix E124 violations
2016-12-01 14:18:11 -08:00
Tim Abbott
1a8a329b44
production-helper: Expand the apt-mark hold list.
2016-12-01 12:29:31 -08:00
Tim Abbott
87879c3916
travis: Workaround broken Travis CI java configuration.
...
Travis CI seems to have broken /usr/bin/java in a recent
infrastructure change.
2016-12-01 11:46:21 -08:00
Tim Abbott
0ac78ca454
setup-production: Fix path to update-prod-static.log.
...
This regressed in 55f2c49bbf
.
2016-12-01 11:15:20 -08:00
Rafid Aslam
c5316b4002
lint: Fix E127 pep8 violations.
...
Fix pep8: E127 continuation line over-indented for visual indent
style issue.
2016-12-01 10:23:55 -08:00
Tim Abbott
fd81cc1d93
test-backend: Clarify missing template tests error message.
2016-12-01 10:12:38 -08:00
Vamshi Balanaga
5f60258a85
pep8: Fix E211 violations.
2016-11-30 20:13:10 -08:00
Bickio
6b0df43463
pep8: Fix E125.
2016-11-30 20:03:29 -08:00
Bickio
e009383460
pep8: Fix E231.
2016-11-30 19:59:25 -08:00
Tim Abbott
995a692f7f
provision: Check whether the system has at least 2GB of RAM.
...
Fixes #2336 .
2016-11-30 16:07:57 -08:00
Tim Abbott
e73ee5a4c4
test-backend: Fix count for templates without tests.
2016-11-30 15:38:19 -08:00
Tommy Ip
e4091c6413
pep8: Fix E222 violations.
2016-11-30 21:49:02 +00:00
Tommy Ip
46b7d54b3e
pep8: Fix E701 violations.
2016-11-30 20:45:09 +00:00
Heidi Dong
ba7d4e7452
mypy: Annotate bots/gcal-bot.
2016-11-29 20:49:11 -08:00
Anders Kaseorg
6549dfd1d0
build-release-tarball: Add --py3 option for python3 shebang lines.
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-29 17:45:18 -08:00
Tim Abbott
4f6a075331
test-backend: Fix missing output for untested templates.
...
Our enforcement logic for untested templates unfortunately did not
give a clear error message unless you passed the --verbose option.
2016-11-29 16:38:18 -08:00
Tommy Ip
844e32ccc5
tools: Remove deprecated generate-activity-metrics.py.
...
The script uses hardcoded hostnames that do not exist anymore,
its functionality is available through directly querying the Zulip
database.
2016-11-29 09:27:59 -08:00
Rafid Aslam
41bd88d5ed
pep8: Fix E301 pep8 violations.
...
Fix "E301: expected (1 or 2) blank line" pep8 violations.
2016-11-29 08:51:44 -08:00
Rafid Aslam
7a2282986a
pep8: Fix E225 pep8 violations.
2016-11-28 15:21:15 -08:00
sylvan1
443cf92640
mypy: Change Generator[None, None, None] to Iterator[None].
...
Fixes #1648 .
2016-11-27 10:42:16 -08:00
Tim Abbott
1fcf2ff525
tornado: Move zerver.tornadoviews to zerver.tornado.views.
...
This furthers the overall goal of moving all the Tornado-specific code
to zerver/tornado/.
2016-11-26 22:29:28 -08:00
Tim Abbott
8739f4d9f1
tornado: Move tornado_ioloop_logging to new zerver/tornado tree.
2016-11-26 21:24:05 -08:00
Tim Abbott
92d1b6d6da
run-dev: Fix regression ignoring --interface argument.
...
When we migrated run-dev.py from Twisted to Tornado a few weeks ago,
the --interface argument wasn't properly ported and thus was ignored.
This restores the original functionality of defaulting to only
listening on localhost.
Ideally, we'd replace the vagrant/zulipdev user check with something
that just checks whether a special file that is created by the
Vagrant/remote-dev-vm creation process exists; that would be more
robust.
2016-11-26 17:23:31 -08:00
Steve Howell
6ed1dc9341
Create api docs from url coverage data from tests.
...
I also retire tools/analyze-url-coverage in this commit,
since the API docs cover most of the functionality.
2016-11-26 14:49:23 -08:00
Anders Kaseorg
207cf6302b
Always start python via shebang lines.
...
This is preparation for supporting using Python 3 in production.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 14:46:37 -08:00
Anders Kaseorg
1ea8abe493
Replace python -u with PYTHONUNBUFFERED=1
...
(Why is -u needed at all? I’m not sure, but test-run-dev spins forever
“Polling run-dev...” without it.)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
Arpith Siromoney
f0df1db9fb
tools: Remove tools/node and call node directly instead.
...
Previously, we didn't install/pin our own node.js version, and thus
had this wrapper script to manage it. Now that install our own node
via nvm, there's no reason we still need this.
Fixes #2409 .
2016-11-26 12:42:58 -08:00
Tim Abbott
25c6b9f586
pre-commit: Call lint-all with --force.
2016-11-26 12:30:16 -08:00
Steve Howell
8110c3f799
tools: Check provisioning version in lint-all.
2016-11-26 11:36:53 -08:00
Steve Howell
5f5e6b6d83
tests: Enforce 100% URL coverage.
...
We now instrument URL coverage whenever you run the back end tests,
and if you run the full suite and fail to test all endpoints, we
exit with a non-zero exit code and report failures to you.
If you are running just a subset of the test suite, you'll still
be able to see var/url_coverage.txt, which has some useful info.
With some tweaks to the output from tabbott.
Fixes #1441 .
2016-11-18 18:10:29 -08:00
Tim Abbott
2abe11e209
lint-all: Fix progress bar from `npm run lint` in linter.
...
Also fixes printing the `eslint` help output in the event that there
are no files to check.
See https://github.com/zulip/zulip/pull/2246#issuecomment-261673662
for details on the original problem.
2016-11-18 16:19:05 -08:00
Arpith Siromoney
497c7702cc
Run eslint in tools/lint-all with npm run --silent lint
...
This commit adds a basic eslintrc that emulates jslint defaults.
Rules that conflict with our existing code have been switched to
warnings instead of errors. Globals have been added to the eslintrc. The
bundled js file (generated by webpack) and blueslip.js are ignored with
.eslintignore.
To display warnings, run npm run lint-loud. This runs eslint without the
--quiet option on static/js and frontend_tests.
npm run --silent lint is run by tools/lint-all (in addition to jslint).
The --silent option is used to suppress the default output from npm run.
Fixes #535 .
2016-11-18 16:15:45 -08:00
Vladislav Manchev
d7e1e4a2c0
Add initial implementation of custom realm filters.
...
This PR was abandoned by Vladislav and then substantially modified by
Igor Tokarev and Tim Abbott to complete it and fix a number of bugs.
Fixes #544 .
2016-11-17 17:11:25 -08:00
paxapy
012ec2beda
test-backend: Use a fixed whitelist of shallow-tested templates.
...
This enforces the requirement that all templates not on this list are
tested. Part of #1677 .
2016-11-17 11:34:50 -08:00
Pweaver (Paul Weaver)
059cd1e7aa
tests: enable the pep8 linter in travis CI.
2016-11-17 00:11:00 -08:00