Update the use of Pydantic for Config
While running the tests, we have this warning:
=============================== warnings summary ===============================
venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:267
venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:267
/builds/framasoft/framaspace/argos/venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:267: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.4/migration/
warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
To be future-proof, we should migrate to the new way Pydantic works.