PIG208
fba21bb00d
black: Reformat skipping string normalization.
2021-06-02 18:45:57 -07:00
PIG208
5580c68ae5
isort: Reformat using isort.
2021-06-02 18:45:57 -07:00
Anders Kaseorg
30f241a126
mypy: Remove unused type: ignore comments.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-04 15:09:58 -08:00
Anders Kaseorg
54b2578204
cleanup: Remove unused variables.
...
Generated by autoflake.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
2f6623bbc4
cleanup: Remove unused imports.
...
Generated by autoflake.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
5428c5f296
typing: Convert function type annotations to Python 3 style.
...
Generated by com2ann (slightly patched to avoid also converting
assignment type annotations, which require Python 3.6), followed by
some manual whitespace adjustment, and two fixes for use-before-define
issues:
- def set_zulip_client(self, zulipToJabberClient: ZulipToJabberBot) -> None:
+ def set_zulip_client(self, zulipToJabberClient: 'ZulipToJabberBot') -> None:
-def init_from_options(options: Any, client: Optional[str] = None) -> Client:
+def init_from_options(options: Any, client: Optional[str] = None) -> 'Client':
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
953709fdd5
log2zulip: Adjust for zulip setup_path_on_import → setup_path change.
...
687553a661
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
d68437d5f5
Rewrite some strings using raw string syntax.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 15:04:36 -07:00
Anders Kaseorg
e30b3b094b
Modernize legacy Python 2 syntax with pyupgrade.
...
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by
manual indentation fixes.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 15:04:36 -07:00
rht
1412403037
integrations: Remove from __future__ imports.
2020-04-02 13:02:28 -04:00
rht
a465467388
integrations: Switch to python3.
2020-04-02 13:02:28 -04:00
Puneeth Chaganti
1231da46bf
log2zulip: Remove unnecessary loop and fix incorrect variable name.
2019-07-13 11:09:36 -07:00
Alena Volkova
7ad3324aaa
mypy: zulip: Fix errors in integrations/log2zulip/log2zulip.
2017-10-27 00:55:54 -04:00
Tim Abbott
297b62efc6
log2zulip: Use simpler code for accessing production venv.
...
The only problem with this resulting code is that setup_path_on_import
only works if the Python versions are the same, so you need to run
this with Python 3 in that case.
We try to resolve that for use on Zulip servers with
zulip/zulip:47c5aae5b242fb6d2f5e860602e0fc0af68419bb; since that's the
main case where the code path runs, that should be good enough.
2017-10-06 16:37:56 -07:00
Tim Abbott
baa09bc26c
log2zulip: Clean up extra config path and add comments.
...
That extra complexity isn't particularly valuable.
2017-09-15 07:04:36 -07:00
derAnfaenger
b53dc5de4c
log2zulip: Make paths Windows compatible.
2017-09-15 07:04:36 -07:00
derAnfaenger
761d4f44c1
log2zulip: Use default argparser.
2017-09-15 07:04:36 -07:00
derAnfaenger
d05e932968
log2zulip: Replace ujson with json.
2017-09-12 02:14:51 -07:00
derAnfaenger
50d8c5f7fe
zulip package: Add requirements.txt for each integration.
2017-09-12 01:39:21 -07:00
Tim Abbott
bbed4a625d
log2zulip: Fix an extremely long line.
2017-08-30 10:01:48 -07:00
Greg Price
49fb205ae7
log2zulip: Fix to work on Python 3.
...
I'm not thrilled with the `replace` error handler losing information
if the logfile contains invalid UTF-8 for some reason; but that sure
beats a UnicodeDecodeError, and for this script I can't quite be
bothered to run the rather tricky riddle trail that Python 3 makes it
to pass arbitrary byte data through layers of ordinary text processing.
2017-08-30 09:57:57 -07:00
Eeshan Garg
3d0f7955b6
api: Move the API package to a dedicated subdirectory.
...
In order to keep all three packages (zulip, zulip_bots,
zulip_botserver) in the same repo, all package files must now
be nested one level deeper.
For instance, python-zulip-api/zulip_bots/zulip_bots/bots/, instead
of python-zulip-api/zulip_bots/bots/.
2017-07-18 02:20:32 -02:30