Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cloudevents/sdk-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: cloudevents/sdk-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2
Choose a head ref
  • 3 commits
  • 91 files changed
  • 3 contributors

Commits on Sep 30, 2024

  1. chore: V2 migrate to uv (#239)

    * Migrate project to rye and ruff for v2
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Just run ruff
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Add the core package stub
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Move cloudevents to v1
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Add extra rye configs. update locks to be OS-aware
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Migrate from rye to uv
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Use python 3.12 by default for linting
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Do not mention rye in docs
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Use stricter mypy rules. exclude v1
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Run isort, flake8
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * fix isort
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Run ruff with isort
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Move mypy config to pyproject
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Exclude samples as well
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Exclude samples as well
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    * Fix mypy pre-commit setup
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    
    ---------
    
    Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    xSAVIKx and pre-commit-ci[bot] authored Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9101ab4 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. fix: remove last mentions of py38 (#244)

    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    PlugaruT authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    d601888 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. feat: base CloudEvent class as per v1 specs, including attribute va…

    …lidation (#242)
    
    * feat: base `CloudEvent` class as per v1 specs, including attribute validation
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: add typings and docstrings
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Add support for custom extension names and validate them
    
    Signed-off-by: Tudor <plugaru.tudor@protonmail.com>
    
    * chore: Add copyright and fix missing type info
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Add getters for attributes and test happy path
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix: typing
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Split validation logic into smaller methods
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Add method to extract extension by name
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: configure ruff to sort imports also
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Returns all the errors at ones instead of raising early. Improve tests
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix missing type info
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Improve exceptions handling. Have exceptions grouped by attribute name and typed exceptions
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Skip type checing for getters of required attributes
    
    We can't use TypedDict here becuase it does not allow for arbitrary keys which we need in order to support custom extension attributes.
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix: missing type
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * chore: Improve exceptions and introduce a new one for invalid values
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * fix: str representation for validation error
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * fix: Fix missing type definitions
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * small fix
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    * remove cast of defaultdict to dict
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
    Signed-off-by: Tudor <plugaru.tudor@protonmail.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    PlugaruT and pre-commit-ci[bot] authored Nov 16, 2024
    Configuration menu
    Copy the full SHA
    a73c870 View commit details
    Browse the repository at this point in the history
Loading