6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 04:48:00 +00:00
tutor/tutor
Régis Behmo 336cb79fa8 refactor: better config type checking
I stumbled upon a bug that should have been detected by the type
checking. Turns out, considering that config is of type Dict[str, Any]
means that we can use just any method on all config values -- which is
terrible. I discovered this after I set `config["PLUGINS"] = None`:
this triggered a crash when I enabled a plugin.
We resolve this by making the Config type more explicit. We also take
the opportunity to remove a few cast statements.
2021-04-18 18:02:02 +02:00
..
commands refactor: better config type checking 2021-04-18 18:02:02 +02:00
templates feat: Conditional edx-platform patching 2021-04-15 07:32:39 +02:00
__about__.py v11.2.6 (2021-04-09) 2021-04-09 10:16:17 +02:00
__init__.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
bindmounts.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
config.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
env.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
exceptions.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
fmt.py refactor: add type annotations 2021-03-15 21:46:55 +01:00
images.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
interactive.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
jobs.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
plugins.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
serialize.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
types.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
utils.py feat: catch errors when writing a file where a directory exists 2021-03-15 23:26:38 +01:00