Skip to content

Commit

Permalink
Update pinned deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Mar 3, 2024
1 parent c176cf7 commit 79c51c9
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
30 changes: 15 additions & 15 deletions deps/check.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,48 @@
#
# pip-compile --output-file=deps/check.txt deps/check.in
#
autoflake==2.2.1
autoflake==2.3.0
# via shed
black==23.9.0
black==24.2.0
# via shed
click==8.1.7
# via black
com2ann==0.3.0
# via shed
flake8==6.1.0
flake8==7.0.0
# via -r deps/check.in
isort==5.12.0
isort==5.13.2
# via shed
libcst==1.0.1
libcst==1.2.0
# via shed
mccabe==0.7.0
# via flake8
mypy==1.5.1
mypy==1.8.0
# via -r deps/check.in
mypy-extensions==1.0.0
# via
# black
# mypy
# typing-inspect
packaging==23.1
packaging==23.2
# via black
pathspec==0.11.2
pathspec==0.12.1
# via black
platformdirs==3.10.0
platformdirs==4.2.0
# via black
pycodestyle==2.11.0
pycodestyle==2.11.1
# via flake8
pyflakes==3.1.0
pyflakes==3.2.0
# via
# autoflake
# flake8
pyupgrade==3.10.1
pyupgrade==3.15.1
# via shed
pyyaml==6.0.1
# via libcst
ruff==0.0.287
ruff==0.3.0
# via -r deps/check.in
shed==2023.6.1
shed==2024.1.1
# via -r deps/check.in
tokenize-rt==5.2.0
# via pyupgrade
Expand All @@ -54,7 +54,7 @@ tomli==2.0.1
# autoflake
# black
# mypy
typing-extensions==4.7.1
typing-extensions==4.10.0
# via
# black
# libcst
Expand Down
32 changes: 17 additions & 15 deletions deps/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,63 @@
#
# pip-compile --output-file=deps/test.txt deps/test.in setup.py
#
arrow==1.2.3
arrow==1.3.0
# via isoduration
attrs==23.1.0
attrs==23.2.0
# via
# hypothesis
# jsonschema
# referencing
coverage[toml]==7.3.1
coverage[toml]==7.4.3
# via pytest-cov
exceptiongroup==1.1.3
exceptiongroup==1.2.0
# via
# hypothesis
# pytest
execnet==2.0.2
# via pytest-xdist
fqdn==1.5.1
# via jsonschema
hypothesis==6.84.3
hypothesis==6.98.15
# via hypothesis-jsonschema (setup.py)
idna==3.4
idna==3.6
# via jsonschema
iniconfig==2.0.0
# via pytest
isoduration==20.11.0
# via jsonschema
jsonpointer==2.4
# via jsonschema
jsonschema[format]==4.19.0
jsonschema[format]==4.21.1
# via
# -r deps/test.in
# hypothesis-jsonschema (setup.py)
jsonschema-specifications==2023.7.1
jsonschema-specifications==2023.12.1
# via jsonschema
packaging==23.1
packaging==23.2
# via pytest
pluggy==1.3.0
pluggy==1.4.0
# via pytest
pytest==7.4.2
pytest==8.0.2
# via
# -r deps/test.in
# pytest-cov
# pytest-xdist
pytest-cov==4.1.0
# via -r deps/test.in
pytest-xdist==3.3.1
pytest-xdist==3.5.0
# via -r deps/test.in
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via arrow
referencing==0.30.2
referencing==0.33.0
# via
# jsonschema
# jsonschema-specifications
rfc3339-validator==0.1.4
# via jsonschema
rfc3987==1.3.8
# via jsonschema
rpds-py==0.10.2
rpds-py==0.18.0
# via
# jsonschema
# referencing
Expand All @@ -74,6 +74,8 @@ tomli==2.0.1
# via
# coverage
# pytest
types-python-dateutil==2.8.19.20240106
# via arrow
uri-template==1.3.0
# via jsonschema
webcolors==1.13
Expand Down
3 changes: 2 additions & 1 deletion src/hypothesis_jsonschema/_canonicalise.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
most things by construction instead of by filtering. That's the difference
between "I'd like it to be faster" and "doesn't finish at all".
"""

import contextlib
import itertools
import json
Expand Down Expand Up @@ -58,7 +59,7 @@
ALL_KEYWORDS = (
*SCHEMA_KEYS,
*SCHEMA_OBJECT_KEYS,
*sum((s.split() for _, s in TYPE_SPECIFIC_KEYS), []),
*(k for _, s in TYPE_SPECIFIC_KEYS for k in s.split()),
)


Expand Down
1 change: 1 addition & 0 deletions src/hypothesis_jsonschema/_encode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Canonical encoding for the JSONSchema semantics, where 1 == 1.0."""

import json
import math
import platform
Expand Down
8 changes: 5 additions & 3 deletions src/hypothesis_jsonschema/_from_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,11 @@ def object_schema(
alphabet.check_name_allowed(name)
known_optional_names: List[str] = sorted(known - set(required))
name_strats = (
__from_schema(names, custom_formats=custom_formats, alphabet=alphabet)
if additional_allowed
else st.nothing(),
(
__from_schema(names, custom_formats=custom_formats, alphabet=alphabet)
if additional_allowed
else st.nothing()
),
st.sampled_from(known_optional_names) if known_optional_names else st.nothing(),
st.one_of(
[
Expand Down
1 change: 1 addition & 0 deletions src/hypothesis_jsonschema/_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
most things by construction instead of by filtering. That's the difference
between "I'd like it to be faster" and "doesn't finish at all".
"""

from copy import deepcopy
from typing import NoReturn, Optional, Union

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps =
commands =
shed
python tests/format_json.py
ruff --fix .
ruff check --fix .
mypy --config-file=tox.ini src/

[testenv:test]
Expand Down Expand Up @@ -60,7 +60,7 @@ ignore = D1,E203,E501,W503,S101,S310
exclude = .*/,__pycache__

[mypy]
python_version = 3.6
python_version = 3.8
platform = linux
disallow_untyped_calls = True
disallow_untyped_defs = True
Expand Down

0 comments on commit 79c51c9

Please sign in to comment.