Commit graph

3345 commits

Author SHA1 Message Date
mathieui
878a67e501
Make KeyDict still inherit from dict 2018-07-23 21:30:49 +02:00
mathieui
ec05954420
Light refactoring + typing 2018-07-23 21:23:48 +02:00
mathieui
38f0cd1c32
Fix "go_to_previous_tab" and remove the usage of Command.win to move internally 2018-07-23 20:40:43 +02:00
mathieui
54875e1ad5
Use the event handler to refresh when the tab changes 2018-07-23 20:38:34 +02:00
mathieui
fdc797aec7
Fix unittests for python 3.5 2018-07-23 19:52:08 +02:00
mathieui
62aefc5b89
Test other python versions 2018-07-23 19:52:08 +02:00
Emmanuel Gil Peyrot
bb36177e4e yapf -ir 2018-07-23 11:36:07 +02:00
Emmanuel Gil Peyrot
e4d9baa954 text_buffer: Fix Message not being defined from inside Message’s definition. 2018-07-23 11:34:50 +02:00
Emmanuel Gil Peyrot
bc102bffe6 windows: Reexport BaseTextWin to fix f107ecd953. 2018-07-23 10:37:22 +02:00
Emmanuel Gil Peyrot
4a01e073ae Replace list() with [] everywhere. 2018-07-22 18:26:50 +02:00
Emmanuel Gil Peyrot
f107ecd953 text_buffer: Add typing information. 2018-07-22 18:24:18 +02:00
Emmanuel Gil Peyrot
33718e56c4 poopt: 😆’s length should be 2, not 1. 2018-07-22 17:31:25 +02:00
Emmanuel Gil Peyrot
30547aa81a theming: Add typing information. 2018-07-22 17:16:45 +02:00
Emmanuel Gil Peyrot
b5bd6a12dd xhtml: Fix a few typing errors. 2018-07-22 17:00:26 +02:00
Emmanuel Gil Peyrot
9ec1b20b90 config: Default LOG_DIR to the local Path. 2018-07-22 16:57:12 +02:00
Emmanuel Gil Peyrot
eb89a5252a logger: Use an option_fd when we know open can fail. 2018-07-22 16:50:08 +02:00
Emmanuel Gil Peyrot
c55759e001 coucou 2018-07-22 16:49:35 +02:00
Emmanuel Gil Peyrot
8d0d59f332 logger: Don’t reassign maybe opened fd to self._fds[room]. 2018-07-22 16:40:45 +02:00
Emmanuel Gil Peyrot
6bc942822d logger: Add missing “return None” statements. 2018-07-22 16:39:49 +02:00
Emmanuel Gil Peyrot
07b534dc39 logger: Add typing information. 2018-07-22 16:38:32 +02:00
mathieui
e9585c7ea1
Fix /message 2018-07-22 16:17:28 +02:00
mathieui
c6cf2d08b7
Fix close_all and change_title plugins 2018-07-22 16:17:06 +02:00
mathieui
e2414121af
Add type hints here and there 2018-07-22 14:25:18 +02:00
mathieui
3cb8e33f93
Do not complete fulljids in /message (Fix #3405) 2018-07-22 00:06:30 +02:00
mathieui
7fd672caca
Fix Python 3.5 compatibility (no PEP 526)
:(
Debian stable can't have nice things.
2018-07-21 23:58:07 +02:00
mathieui
73d198561d
Fix some issues found by pylint
which were probably due to a borked merge
2018-07-21 21:44:10 +02:00
mathieui
0bdc9676d2
Split type declarations from __init__ 2018-07-21 21:38:26 +02:00
mathieui
534ba14d5c
Fix /reorder 2018-07-21 21:38:26 +02:00
mathieui
784f2d2876
Fix the move_tab command 2018-07-21 21:38:26 +02:00
mathieui
115aee3d05
new tabs: apply review 2018-07-21 20:20:13 +02:00
mathieui
2147efa4a1
Add tests for the new tabs module 2018-07-21 20:20:13 +02:00
mathieui
a28b9c4422
Update poezio for the new tabs module 2018-07-21 20:20:13 +02:00
mathieui
7d9afc6ad4
Add a tabs management module 2018-07-21 20:15:52 +02:00
mathieui
481d0b8730
Fix docker CI
Remove our custom images
2018-07-21 20:00:01 +02:00
mathieui
d80ae218aa
Add exceptions for some pylint errors
until we find out where type inference has gone very wrong.
2018-07-21 19:31:00 +02:00
mathieui
ea2d76864d
yapf -rip 2018-07-21 17:09:52 +02:00
mathieui
3ec153a6a0
Fix the segfault on exit 2018-07-21 16:47:28 +02:00
mathieui
a8fc35cf35
Fix the config tests 2018-07-21 16:46:50 +02:00
Emmanuel Gil Peyrot
79a4cc8937 config: Cast Path to str() before passing it to copy2. 2018-07-21 14:27:29 +02:00
Emmanuel Gil Peyrot
c1bc46cb2c config: Try to create the logs directory before setting up error logs. 2018-07-19 12:03:40 +02:00
Emmanuel Gil Peyrot
31ec0564e7 Fix custom theme loading under Python 3.5. 2018-07-16 02:01:30 +02:00
Emmanuel Gil Peyrot
13b90fb10b Remove extraneous ", " in Message.__repr__. 2018-07-14 17:15:55 +02:00
Emmanuel Gil Peyrot
20ebea1c89 Stop making classes inherit from object. 2018-07-14 16:25:09 +02:00
Emmanuel Gil Peyrot
3acfd83c24 common: Simplify get_os_info() using pathlib.Path(). 2018-07-10 12:07:08 +02:00
Emmanuel Gil Peyrot
8fbbe701f2 common: Remove unused get_base64_from_file() function. 2018-07-10 12:07:05 +02:00
Emmanuel Gil Peyrot
59f12b761d xhtml: Add forgotten import of Path. 2018-07-09 12:01:32 +02:00
f35b3d16a3 Also reload plugins configuration on /reload
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-07-08 23:21:09 +02:00
Emmanuel Gil Peyrot
07e13a1220 Fix loading plugins. 2018-07-08 11:02:17 +02:00
Emmanuel Gil Peyrot
19cc6229a2 logger: Use pathlib.Path.open() instead of open(). 2018-07-08 10:58:00 +02:00
Emmanuel Gil Peyrot
cabc8fcd94 config: Use pathlib.Path.open() instead of open(). 2018-07-08 10:56:59 +02:00