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.10.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.11.0
Choose a head ref
  • 16 commits
  • 39 files changed
  • 4 contributors

Commits on Feb 1, 2022

  1. Configuration menu
    Copy the full SHA
    41c7415 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. Switch to pre-commit.ci ; Remove pre-commit from github actions (#35)

    * Remove pre-commit from github actions
    
    pre-commit.ci will handle running our hooks.
    
    As a result, it's no longer useful to have `tox -e lint` either.
    Update `make lint` to run pre-commit directly.
    
    * Bump self-version in pre-commit config
    sirosen authored Feb 4, 2022
    Configuration menu
    Copy the full SHA
    92d63fb View commit details
    Browse the repository at this point in the history
  2. Add pre-commit badge

    sirosen committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    195e071 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2022

  1. [pre-commit.ci] pre-commit autoupdate (#36)

    updates:
    - [github.com/pre-commit/pre-commit-hooks.git: v3.4.0 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks.git/compare/v3.4.0...v4.1.0)
    - https://github.com/python/blackhttps://github.com/psf/black
    - [github.com/psf/black: 21.5b0 → 22.1.0](psf/black@21.5b0...22.1.0)
    - https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
    - [github.com/PyCQA/flake8: 3.9.1 → 4.0.1](PyCQA/flake8@3.9.1...4.0.1)
    - https://github.com/timothycrosley/isorthttps://github.com/PyCQA/isort
    - [github.com/PyCQA/isort: 5.8.0 → 5.10.1](PyCQA/isort@5.8.0...5.10.1)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 7, 2022
    Configuration menu
    Copy the full SHA
    7eadd48 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2022

  1. Use requests to make HTTP requests (#37)

    This lets us use `responses` for testing as well.
    
    Request retries are included in the behavior, but done manually rather
    than via urllib3 Retry configurations.
    
    closes #34
    sirosen authored Feb 10, 2022
    Configuration menu
    Copy the full SHA
    09f248f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b41f27f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ec2e6fb View commit details
    Browse the repository at this point in the history
  4. [vendor-schemas] automated update (#39)

    Co-authored-by: sirosen <sirosen@users.noreply.github.com>
    github-actions[bot] and sirosen authored Feb 10, 2022
    Configuration menu
    Copy the full SHA
    557535a View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2022

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

    Co-authored-by: sirosen <sirosen@users.noreply.github.com>
    github-actions[bot] and sirosen authored Feb 12, 2022
    Configuration menu
    Copy the full SHA
    4f68b6f View commit details
    Browse the repository at this point in the history
  2. Switch hooks to always use vendored schemas

    Remove `--schemafile` argument from hooks, and switch from
    `--failover-builtin-schema` to `--builtin-schema`. In order to
    continue to have a vendoring workflow, `vendor-schemas.py` needs a new
    source from whence it can pull the schema names and URLs. The mapping
    in question now lives in a dedicated module,
    `check_jsonschema.catalog`, in a dict. `vendor-schemas.py` imports
    this module as its data source.
    
    resolves #38
    sirosen committed Feb 12, 2022
    Configuration menu
    Copy the full SHA
    7bec2b5 View commit details
    Browse the repository at this point in the history
  3. Add tests which run all configured hooks

    In order to run these without subprocs, a minor adjustment is needed
    to how exits are handled. Inspired by click's "standalone mode", give
    the main entrypoint an `exit=False` option.
    sirosen committed Feb 12, 2022
    Configuration menu
    Copy the full SHA
    c6ab5f2 View commit details
    Browse the repository at this point in the history
  4. Minor typo fix in CI build

    sirosen committed Feb 12, 2022
    Configuration menu
    Copy the full SHA
    44d7182 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2022

  1. Add --show-all-validation-errors

    This is a flag to make the checker print all of the validation errors
    encountered, including both the 'best_match' and a walk of all errors.
    
    Move error printing into the utils module, to keep the SchemaChecker
    simpler.
    
    Add tests to cover the error printing functions.
    sirosen committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    146ca96 View commit details
    Browse the repository at this point in the history
  2. Add --data-transform feature

    This feature is built to allow us to define transforms which are
    applied to any instancefile after loading, and before validation.
    
    In the case of azure-pipelines, we have a reference implementation in
    the azure-pipelines-language-server to look at. The `transforms`
    subpackage contains a reimplementation of that same "parser" in
    python. For now, only named transforms are supported, and the only
    implemented transform is "azure-pipelines".
    
    Update the hook for pre-commit to use
    `--data-transform azure-pipelines`.
    
    Include a test pulled from the pipelines-language-server (with
    license) to confirm the result.
    sirosen committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    31c97e4 View commit details
    Browse the repository at this point in the history
  3. Adjust printing of validation errors

    If `err.context` is populated, always print the best match error, even
    when the `--show-all-validation-errors` flag has not been provided.
    
    Update changelog with notes on anyOf/oneOf error handling -- the cases
    which populate `err.context`
    sirosen committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    a49bee3 View commit details
    Browse the repository at this point in the history
  4. Bump version for release

    Add a new bump-version.py script for updating the version number in
    setup.cfg, readme, and changelog.
    sirosen committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    bd77683 View commit details
    Browse the repository at this point in the history
Loading