Tim Abbott
92d696d007
Migrate check_postgres plugins to zulip/.
2016-04-05 13:27:04 -07:00
Tim Abbott
e155ecdc49
Migrate check_rabbitmq plugins to zulip/.
2016-04-05 13:27:04 -07:00
Tim Abbott
3ed7d658f8
Migrate check_send_receive_time to zulip/.
2016-04-05 13:27:04 -07:00
Tim Abbott
ca45ec3f3f
Migrate check_email_deliverer plugins to zulip/.
2016-04-05 13:27:04 -07:00
Tim Abbott
4e10424512
Migrate check_worker_memory to zulip/.
2016-04-05 13:27:04 -07:00
Tim Abbott
59b46278be
Move check_queue_worker_errors into subdirectory.
...
This fixes an issue where this worker wasn't even being installed
properly in a way that sets us up for doing further reorganization of
the Zulip Nagios plugins.
2016-04-05 13:27:04 -07:00
Tim Abbott
6f20c43097
Move dependency on nagios_plugins into base.pp.
2016-04-05 13:27:04 -07:00
Eklavya Sharma
05ab57e373
In py3k, exit with 1 if repository is not clean.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
569d1240d0
Exit with 1 in py3k when fixers find an issue.
...
tools/travis/py3k used to always exit with exit code 0.
It should exit with 1 when fixers detect a compatibility issue.
py3k used [ -z "$failed" ] to check if there was a failure.
This is wrong, since if no failure has occured, failed=0,
and -z checks if a string is of zero length. This commit also
fixes this bug.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
dd501830a6
Change position where git reset is called in py3k.
...
In py3k, "git reset --hard" was called only if
libmodernize.fixes.fix_dict_six changed files and some of those
changes are not considered false positives by py3k.
But if all of those changes are not considered false positives
by py3k, then "git reset --hard" is not called and the repository
is no longer clean.
This commit fixes this bug.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
5e71777975
Add --no-pager option to git diff in py3k.
...
This is needed because py3k hangs when a pager opens up.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
adff674b0e
tools/travis/py3k now checks all python files.
...
tools/travis/py3k used to only check files whose names ended with .py.
Now it also checks python scripts which don't have an extension.
It uses tools/lister.py to get a list of all python files.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
ab02ab31e3
Change len(obj.keys()) to len(obj) in tools/get-handlebar-vars.
...
This prevents libmodernize.fixes.fix_dict_six from reporting
this on running tools/travis/py3k.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
0af154a301
Apply Python 3 futurize transform libfuturize.fixes.fix_absolute_import.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
8a81f8c125
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
f4aa609aea
Apply Python 3 futurize transform libmodernize.fixes.fix_file.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
be0a4f349d
Apply Python 3 futurize transform libmodernize.fixes.fix_filter.
2016-04-05 13:22:51 -07:00
Tim Abbott
78e289f904
Exclude puppet-common tests from puppet linter.
2016-04-04 17:08:29 -07:00
Tim Abbott
e6fb5bb1ea
changelog: Add more changes since 1.3.10.
2016-04-03 17:55:06 -07:00
Tim Abbott
75d134a9b2
Import tornado.autoreload explicitly.
...
Fixes #623 .
2016-04-03 16:52:23 -07:00
Ashish
909b0635c8
Add management command to test sending email.
...
Fixes : #622 .
[With cleanups/doc tweaks by tabbott]
2016-04-03 16:50:16 -07:00
Varshit
e0ef1a991e
Rewrite sanitize_name to better preserve filenames.
...
The previous version of sanitize_name dropped all unicode characters
and mangled filenames with multiple `.`s in the extension, leading to
confusing URLs for files uploaded to Zulip.
Fixes #321 .
[tweaked significantly by tabbott]
2016-04-03 16:26:12 -07:00
Tim Abbott
4a50336476
Add type: Any for tornado.ioloop.add_timeout return value.
2016-04-03 15:40:24 -07:00
Tim Abbott
4352a022cd
Add type: ignore to wildcard imports in pythonrc.py.
2016-04-03 15:40:24 -07:00
Tim Abbott
b6dd6413d0
Add type: ignore for tornado_ioloop_logging Tornado versioning code.
2016-04-03 15:40:24 -07:00
Tim Abbott
53ab18eea0
Add type: ignore for chain.from_iterable.
2016-04-03 15:40:24 -07:00
Tim Abbott
9abd332c07
Add type: ignore for mock.Mock() monkey-patching.
2016-04-03 15:40:24 -07:00
Tim Abbott
0d40473818
Add type: ignore for empty list mypy bug.
2016-04-03 15:40:24 -07:00
Tim Abbott
2c1377319f
Add type: ignore for mypy __cmp__ bug.
2016-04-03 15:40:24 -07:00
Tim Abbott
3a2d5266d8
Add type: ignore for mypy super() bug.
2016-04-03 15:40:24 -07:00
Tim Abbott
e3ec3e2526
Add type: ignore for test_helpers monkey-patching.
2016-04-03 15:40:24 -07:00
Tim Abbott
6c999927ac
Add type: ignore for csrf_exempt decorator.
2016-04-03 15:40:23 -07:00
Tim Abbott
b7dcf2181f
Add PEP-484 type annotations to management commands.
2016-04-03 15:40:23 -07:00
Tim Abbott
b437fe2924
Add PEP-484 annotations to bots/.
2016-04-03 15:40:23 -07:00
Tim Abbott
5d5976e4ae
Add PEP-484 type annotations to api/.
...
It's not clear this is net constructive since it makes our API
bindings harder to install.
2016-04-03 15:40:23 -07:00
Tim Abbott
2d2282ada8
Add PEP-484 type annotations to confirmation/.
2016-04-03 15:40:23 -07:00
Tim Abbott
b8c82d5b43
Add PEP-484 type annotations to analytics/.
2016-04-03 15:40:23 -07:00
Tim Abbott
32f8f85f8b
Add PEP-484 type annotations to zerver/*.py.
2016-04-03 15:40:23 -07:00
Tim Abbott
ee8be22160
Add PEP-484 type annotations to zerver/worker/.
2016-04-03 15:40:23 -07:00
Tim Abbott
ec7bb0b011
Add PEP-484 type annotations to zerver/views/.
2016-04-03 15:40:23 -07:00
Tim Abbott
2059f650ab
Add PEP-484 type annotations to zerver/lib/.
2016-04-03 15:40:23 -07:00
Tim Abbott
d8f7d89fb4
Add PEP-484 type annotations to zerver/models.py.
...
Done pair-programming with Guido.
2016-04-03 15:40:06 -07:00
Tim Abbott
b99313545e
Add PEP-484 type annotations to global dictionaties.
2016-04-03 15:40:06 -07:00
Tim Abbott
77be524dc4
Add PEP-484 type annotations to generator functions.
2016-04-03 15:40:05 -07:00
Tim Abbott
2c88085572
test_decorators: Clean up Request.REQUEST mocking.
2016-04-03 15:40:05 -07:00
Tim Abbott
70c1b0a01d
lister: Add file type detection for node and ruby.
2016-04-01 15:27:32 -07:00
Eklavya Sharma
aead933c14
Add command-line interface to lister.py using argparse.
2016-04-01 15:27:32 -07:00
Eklavya Sharma
81fdeae0ea
Remove '.'s from extensions in lister.py interface and lint-all.
...
In lint-all, change occurences of '.py', '.js', ... to 'py', 'js', ....
2016-04-01 15:27:16 -07:00
Eklavya Sharma
ad4c20a3e6
Migrate lint-all to lister.py for getting files.
...
This has the side effect of making lint-all check all shell scripts,
not just those under scripts/, tools/, and bin/.
[commit message expanded by tabbott]
2016-04-01 15:24:43 -07:00
Eklavya Sharma
ec8ae1f4c5
Add option to determine file type in lister.py using shebang.
2016-04-01 15:19:13 -07:00