Skip to content

Commit 1e2f3db

Browse files
authored
chore: move mypy config to pyproject.toml (#1240)
For some reason this exposed a type error 🤷?
1 parent 6f00acf commit 1e2f3db

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
- Typing of `href` arguments ([#1234](https://github.com/stac-utils/pystac/pull/1234))
1212
- Interactions between **pytest-recording** and the validator schema cache ([#1242](https://github.com/stac-utils/pystac/pull/1242))
13+
- Call `registry` when instantiating `Draft7Validator` ([#1240](https://github.com/stac-utils/pystac/pull/1240))
1314

1415
### Removed
1516

mypy.ini

-12
This file was deleted.

pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ test = [
5656
"ruff==0.0.291",
5757
"types-html5lib~=1.1",
5858
"types-orjson~=3.6",
59+
"types-jsonschema~=4.18",
5960
"types-python-dateutil~=2.8",
6061
"types-urllib3~=1.26",
6162
]
@@ -76,6 +77,14 @@ exclude = ["tests*", "benchmarks*"]
7677
[tool.setuptools.dynamic]
7778
version = { attr = "pystac.version.__version__" }
7879

80+
[tool.mypy]
81+
show_error_codes = true
82+
strict = true
83+
84+
[[tool.mypy.overrides]]
85+
module = ["jinja2"]
86+
ignore_missing_imports = true
87+
7988
[tool.ruff]
8089
line-length = 88
8190
select = ["E", "F", "I"]

0 commit comments

Comments
 (0)