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: python-jsonschema/check-jsonschema
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.27.2
Choose a base ref
...
head repository: python-jsonschema/check-jsonschema
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.27.3
Choose a head ref
  • 12 commits
  • 22 files changed
  • 5 contributors

Commits on Nov 27, 2023

  1. [pre-commit.ci] pre-commit autoupdate

    updates:
    - [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.2](0.27.0...0.27.2)
    - [github.com/psf/black: 23.10.0 → 23.11.0](psf/black@23.10.0...23.11.0)
    pre-commit-ci[bot] authored Nov 27, 2023
    Configuration menu
    Copy the full SHA
    637bb64 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #358 from python-jsonschema/pre-commit-ci-update-c…

    …onfig
    
    [pre-commit.ci] pre-commit autoupdate
    sirosen authored Nov 27, 2023
    Configuration menu
    Copy the full SHA
    f9c1eb7 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2023

  1. Bump responses from 0.23.3 to 0.24.1 (#361)

    Bumps [responses](https://github.com/getsentry/responses) from 0.23.3 to 0.24.1.
    - [Release notes](https://github.com/getsentry/responses/releases)
    - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES)
    - [Commits](getsentry/responses@0.23.3...0.24.1)
    
    ---
    updated-dependencies:
    - dependency-name: responses
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 3, 2023
    Configuration menu
    Copy the full SHA
    e0e7da4 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. Apply lazy file reading for instancefiles

    Lazy reads are slightly customized to better handle named pipes.
    
    The lazy file reads are combined with an early close immediately after
    the instance loader gets data from a file. As a result,
    check-jsonschema should only keep one instance file open at a time.
    sirosen committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    b02f492 View commit details
    Browse the repository at this point in the history
  2. Fix schema readers to cache data

    The previous implementation tried to repeatedly read data for a schema
    input, even across multiple instances. As a result, if the schema
    source was ephemeral (e.g. a memfd), the subsequent reads would fail.
    sirosen committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    3d49748 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. [vendor-schemas] automated update (#357)

    Co-authored-by: sirosen <sirosen@users.noreply.github.com>
    github-actions[bot] and sirosen authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    bb2be1c View commit details
    Browse the repository at this point in the history
  2. Add a test which verifies lazy file reading

    Create a directory of 2000 instance files, then iterate through them
    and verify that the number of open files never exceeds 2000 at any
    point during iteration.
    sirosen committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    20ab97f View commit details
    Browse the repository at this point in the history
  3. Fix mypy linting errors

    sirosen committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    59a7816 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Support lazy files with pyjson5

    In order for pyjson5 to be satisfied, it must be passed the real file
    descriptor (or something satisfying `io.IOBase`). For simplicity, pass
    it the underlying open() result.
    
    Also improve the file close behavior using a `finally` block.
    sirosen committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    2196b87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03d433b View commit details
    Browse the repository at this point in the history
  3. Merge pull request #363 from python-jsonschema/improve-file-handling

    Improve file handling with lazy reads
    sirosen authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    16a6062 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de17730 View commit details
    Browse the repository at this point in the history
Loading