Commit graph

4327 commits

Author SHA1 Message Date
mathieui
02a858eb49 tests: Fix tests 2021-04-11 19:59:40 +02:00
mathieui
bd2aac6de2 typing: fix a bunch of type errors
add more annotations
2021-04-11 19:41:04 +02:00
mathieui
0541bbb4bc internal: remove more global state from config 2021-04-11 18:57:23 +02:00
mathieui
1640a90a63 feature: add a /debug command to change logging level dynamically
And changing the path too
2021-04-11 18:50:31 +02:00
mathieui
57cd999f70 refactor: move argument parsing away from config.py
global state--
2021-04-11 18:38:22 +02:00
mathieui
29a7c6eca5 doc: explain module behavior 2021-04-11 16:37:49 +02:00
mathieui
6b2c12c16c fix: do not use Literal 2021-04-11 16:33:53 +02:00
mathieui
b729de9147 fix: typing imports for 3.9 2021-04-11 16:33:53 +02:00
mathieui
93daf17324 fix: logger: handle empty log files as well 2021-04-11 16:33:53 +02:00
mathieui
18b1d5ae72 feature: add a mam_sync_limit tab option 2021-04-11 16:33:53 +02:00
mathieui
4ae1b714c4 internal: make mam_sync and use_log use tab-specific options 2021-04-11 16:33:53 +02:00
mathieui
6f36d6b507 feature: add a mam_sync option 2021-04-11 16:33:53 +02:00
mathieui
6d7921da55 internal: better typing & docstrings for logger/log loader 2021-04-11 16:33:53 +02:00
mathieui
a827743b86 internal: make the MAMFiller an attribute of ChatTabs
and fetch logs in conversationtabs and privatetabs
2021-04-11 16:33:53 +02:00
mathieui
f6ba263305 internal: Remove now unused code from mam.py 2021-04-11 16:33:53 +02:00
mathieui
4cbc0e4506 tests: update logger test 2021-04-11 16:33:53 +02:00
mathieui
91be567228 feature: add a function to retrieve the last message from the logs 2021-04-11 16:33:53 +02:00
mathieui
bf8965fb4b feature: Add a MAM history filler 2021-04-11 16:33:53 +02:00
mathieui
48abe2ad7e feature: add a log loader class 2021-04-11 16:33:53 +02:00
mathieui
73767bc97a fix: issue when converting local timezones 2021-04-11 16:33:53 +02:00
mathieui
e49552e444 refactor: rename poezio.asyncio module
no clash with stdlib pls
2021-04-11 16:33:53 +02:00
mathieui
835d7c855a fix: make parse_log_lines treat info differently from msgs 2021-04-11 16:33:53 +02:00
mathieui
d63b65f556 feature: add a mechanism to prevent the logger from writing temporarily 2021-04-11 16:33:53 +02:00
mathieui
7ece335145 feature: add a function to iterate over all messages of a log file
in reverse order
2021-04-11 16:33:53 +02:00
mathieui
a3fcfd3ffd fix: make the jid optional when parsing a log line 2021-04-11 16:33:53 +02:00
mathieui
8cbe41eba8 fix: when disconnected, do not send a new ping event 2021-04-11 14:41:42 +02:00
mathieui
b60a828661 fix: beep_on was broken with config changes 2021-04-08 20:52:55 +02:00
mathieui
dafe5b9e24 fix: logger: improve typing, globals and tests 2021-04-03 14:01:34 +02:00
mathieui
f56811d546 logging: Remove the "typ" passing when adding or logging messages 2021-04-02 22:22:30 +02:00
mathieui
bbc22fc8bc fix: plugin config 2021-04-02 17:44:36 +02:00
mathieui
0ff5483f00 ci: install custom mypy and typecheck plugins too 2021-04-02 17:44:36 +02:00
mathieui
50b8a7afe1 fix: add a type ignore to curses vline
The typeshed stubs do not have a correct definition (probably because
the python docs themselves do not have it)
2021-04-02 17:44:36 +02:00
mathieui
f80e9d9dde fix: forgotten tab names set 2021-04-02 17:44:36 +02:00
mathieui
ef772d8b2a fix: failing tests 2021-04-02 17:44:36 +02:00
mathieui
84afe4938d fix: restore toggle & get previous behavior 2021-04-02 17:44:36 +02:00
mathieui
c0c0155ba3 fix: ignore type for xmltab input
until we have a cleaner way of substituting an input.
2021-04-02 17:44:36 +02:00
mathieui
d0551c09ba fix: typing issues in plugins 2021-04-02 17:44:36 +02:00
mathieui
d27895e04e tests: use named parameters for user test 2021-04-02 17:44:36 +02:00
mathieui
14cbbefdde fix; make python 3.7 happy
………
2021-04-02 17:44:36 +02:00
mathieui
90af21f680 fix: forgotten gaptab constructor calls 2021-04-02 17:44:36 +02:00
mathieui
de265268da fix: add back the remove_section() for Config 2021-04-02 17:44:36 +02:00
mathieui
388990bb42 fix: ignore type error for static kwargs 2021-04-02 17:44:36 +02:00
mathieui
2dfb5096b9 fix: incompatible type passed to logger 2021-04-02 17:44:36 +02:00
mathieui
0db73f722f fix: make Tab.name always a property 2021-04-02 17:44:36 +02:00
mathieui
48a5b3e769 fix: last_sent_message for conversation tab 2021-04-02 17:44:36 +02:00
mathieui
6ebffc1dec fix: unify signature of modify_message 2021-04-02 17:44:36 +02:00
mathieui
9b01b9afa1 fix: ignore last_sent_message type
not sure why mypy ignores that everywhere
2021-04-02 17:44:36 +02:00
mathieui
d08ed8d138 fix: ignore typeerrors in tabs when we check beforehand 2021-04-02 17:44:36 +02:00
mathieui
2c12a598aa fix: do not use raw TAB_WIN in bookmarks wins
(wth)
2021-04-02 17:44:36 +02:00
mathieui
43d84a2288 fix: type error after module import
(despite hasattr())
2021-04-02 17:44:36 +02:00