Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to pydantic v2 #20

Merged
merged 20 commits into from
Sep 25, 2024
Merged

Upgrade to pydantic v2 #20

merged 20 commits into from
Sep 25, 2024

Commits on Sep 20, 2024

  1. Added unit tests for model validation related to PredictData and Trai…

    …nData class.
    Ghulam Mustafa Majal committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    7811809 View commit details
    Browse the repository at this point in the history
  2. Provided more unit tests for PredictSettings class. The attribute out…

    …put_path has a default value of None now.
    Ghulam Mustafa Majal committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    7d0a4f0 View commit details
    Browse the repository at this point in the history
  3. Additional whitespace added after commas to avoid linting errors.

    Ghulam Mustafa Majal committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    645b54f View commit details
    Browse the repository at this point in the history
  4. Remove commas after last entry inside lists.

    Ghulam Mustafa Majal committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    baf5c3b View commit details
    Browse the repository at this point in the history
  5. Add comma to avoid linting errors from black.

    Ghulam Mustafa Majal committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    6c3a036 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Add pydantic v2 inside the pyproject.toml file. root_validator and An…

    …yUrl have been replaced with appropriate syntax for v2.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    f726ea0 View commit details
    Browse the repository at this point in the history
  2. Fix flake8 errors and add pydantic-settings package in the pyprojec.t…

    …oml file.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    5f78b99 View commit details
    Browse the repository at this point in the history
  3. Remove comma to avoid flake 8 error. Annotated is imported now from t…

    …yping_extensions.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c42e915 View commit details
    Browse the repository at this point in the history
  4. Refactor code to avoid linting errors from the package Black.

    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    448c5b9 View commit details
    Browse the repository at this point in the history
  5. Refactor code to comply with Black.

    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    9bd1fab View commit details
    Browse the repository at this point in the history
  6. Modify dummy subthesauri in tests/common.py to lowercase, so that the…

    … pydantic AnyUrl type is not converted to lowercase while being processed by the unit test.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a357dd0 View commit details
    Browse the repository at this point in the history
  7. Replace dict() and json() with model_dump() and model_dump_json(), re…

    …spectively to avoid deprecation warnings.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    979a4bb View commit details
    Browse the repository at this point in the history
  8. In order to avoid a flake8 error by spreading a lengthy line inside t…

    …est_integration.py into multiple lines.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    7546484 View commit details
    Browse the repository at this point in the history
  9. Ignore lengthy lines in flake8 from github actions.

    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a003cd7 View commit details
    Browse the repository at this point in the history
  10. Fix linting issues flagged by Black.

    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    350f3e5 View commit details
    Browse the repository at this point in the history
  11. Put all imports from pydantic in one line for the interface/config.py…

    … file.
    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    71f94a9 View commit details
    Browse the repository at this point in the history
  12. Fix linting issue raised by Black.

    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    9fde662 View commit details
    Browse the repository at this point in the history
  13. Pull changes from master and update poetry.lock file.

    Ghulam Mustafa Majal committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    e628306 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Remove ignore command from github actions inside step associated with…

    … linting.
    Ghulam Mustafa Majal committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    b9d3b65 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Extra unit test added to check status 422 for rest api.

    Ghulam Mustafa Majal committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ec7b91e View commit details
    Browse the repository at this point in the history