Skip to content

Commit 5b797d4

Browse files
authored
In tests, handle changes in click and jsonschema (#284)
- click v8.1.4 triggers a mypy bug that causes type checking to fail. click is working on a fix, but until it's released, avoid that version. - jsonschema 4.18.0 deprecates the older ref resolution framework. Until check-jsonschema can update to use the newer ref resolver, ignore the deprecation warnings in tests.
1 parent e58ab18 commit 5b797d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ commands = coverage report --skip-covered
4646

4747
[testenv:mypy]
4848
description = "check type annotations with mypy"
49+
# temporarily pin back click until either click 8.1.5 releases or mypy fixes the issue
50+
# with referential integrity of type aliases
4951
deps = mypy
5052
types-jsonschema
5153
types-requests
54+
click==8.1.3
5255
commands = mypy src/ {posargs}
5356

5457
[testenv:docs]
@@ -82,4 +85,6 @@ description = "update autogenerated pre-commit hooks"
8285
commands = python ./scripts/generate-hooks-config.py
8386

8487
[pytest]
85-
filterwarnings = error
88+
filterwarnings =
89+
error
90+
ignore:jsonschema\.(RefResolver|exceptions\.RefResolutionError) is deprecated as of (version |v)4\.18\.0:DeprecationWarning

0 commit comments

Comments
 (0)