Skip to content

Commit

Permalink
deps: fix click typing
Browse files Browse the repository at this point in the history
Typing seems jank after click v8.1.4
  • Loading branch information
gadomski committed Jul 14, 2023
1 parent 644a420 commit 78f1e02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
hooks:
- id: mypy
additional_dependencies:
- click~=8.1,!=8.1.4 # https://github.com/pallets/click/issues/2558
- click~=8.1,<8.1.4 # https://github.com/pallets/click/issues/2558
- pystac
- pytest
- types-aiofiles
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [

[project.optional-dependencies]
cli = [
"click~=8.1",
"click~=8.1.0,<8.1.4", # typing breaks after v8.1.4, https://github.com/pallets/click/issues/2558 is one example but there's more
]
dev = [
"black~=23.3",
Expand All @@ -55,6 +55,16 @@ changelog = "https://github.com/stac-utils/stac-asset/blob/main/CHANGELOG.md"
[tool.mypy]
strict = true

[[tool.mypy.overrides]]
module = [
"aiobotocore.session",
"aiobotocore",
"botocore",
"botocore.config"
]
ignore_missing_imports = true


[tool.ruff]
select = ["F", "E", "W", "I", "ERA", "RUF", "D"]
ignore = ["D100", "D105", "D107"]
Expand Down

0 comments on commit 78f1e02

Please sign in to comment.