Skip to content

Commit

Permalink
Address style issues and some downstream failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Slavich committed Mar 11, 2022
1 parent 71c3b27 commit 119a793
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions asdf/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import numpy as np
import yaml
from jsonschema import validators as mvalidators
from jsonschema.exceptions import ValidationError, RefResolutionError
from jsonschema.exceptions import RefResolutionError, ValidationError

from . import constants, extension, generic_io, reference, tagged, treeutil, util, versioning, yamlutil
from .config import get_config
Expand Down Expand Up @@ -261,7 +261,7 @@ def _create_validator(validators=YAML_VALIDATORS, visit_repeat_nodes=False):

@attr.s
class ASDFValidator(base_cls):
_context = attr.ib(factory = lambda: _ValidationContext())
_context = attr.ib(factory=lambda: _ValidationContext())
ctx = attr.ib(default=None)
serialization_context = attr.ib(default=None)

Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ install_requires =
semantic_version>=2.8
asdf-standard>=1.0.1
asdf-transform-schemas>=0.2.2
# Multiple downstream packages accidentally depend on asdf to
# install six. As a friendly gesture we list six as a dependency
# for older Python versions.
six;python_version<"3.8"

[options.extras_require]
all =
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deps=
legacy: gwcs==0.9.1
legacy: semantic_version==2.8
legacy: pyyaml==3.13
legacy: jsonschema==3.0.2
legacy: jsonschema==4.0.1
legacy: numpy~=1.14.6
legacy: pytest~=4.6.11
legacy: astropy~=3.0.0
Expand Down

0 comments on commit 119a793

Please sign in to comment.