Thanks to visit codestin.com
Credit goes to github.com

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 <[email protected]>
    
    * Just run ruff
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Add the core package stub
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Move cloudevents to v1
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Add extra rye configs. update locks to be OS-aware
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Migrate from rye to uv
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Use python 3.12 by default for linting
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Do not mention rye in docs
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * [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 <[email protected]>
    
    * Run isort, flake8
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * fix isort
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Run ruff with isort
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Move mypy config to pyproject
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Exclude samples as well
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Exclude samples as well
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    * Fix mypy pre-commit setup
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    
    ---------
    
    Signed-off-by: Yurii Serhiichuk <[email protected]>
    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 <[email protected]>
    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 <[email protected]>
    
    * chore: add typings and docstrings
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Add support for custom extension names and validate them
    
    Signed-off-by: Tudor <[email protected]>
    
    * chore: Add copyright and fix missing type info
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Add getters for attributes and test happy path
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * fix: typing
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Split validation logic into smaller methods
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Add method to extract extension by name
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: configure ruff to sort imports also
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Returns all the errors at ones instead of raising early. Improve tests
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * fix missing type info
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Improve exceptions handling. Have exceptions grouped by attribute name and typed exceptions
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * 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 <[email protected]>
    
    * fix: missing type
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * chore: Improve exceptions and introduce a new one for invalid values
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * fix: str representation for validation error
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * [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 <[email protected]>
    
    * small fix
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    * remove cast of defaultdict to dict
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    
    ---------
    
    Signed-off-by: Tudor Plugaru <[email protected]>
    Signed-off-by: Tudor <[email protected]>
    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