allegroai / clearml

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Apache License 2.0
5.61k stars 651 forks source link

address DeprecationWarnings from jsonschema #1128

Closed xquyvu closed 11 months ago

xquyvu commented 12 months ago

Related Issue \ discussion

N/A

Patch Description

Address the DeprecationWarning raised from jsonschema. My VSCode testing configuration treats DeprecationWarnings as Error, which means I cannot run any tests with VSCode testing when having clearml installed.

E   DeprecationWarning: Importing FormatError directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.

Testing Instructions

>>> import jsonschema
>>> jsonschema.FormatError
<stdin>:1: DeprecationWarning: Importing FormatError directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.
<class 'jsonschema.exceptions.FormatError'>

Other Information