Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pip-dependencies #140

Merged
merged 6 commits into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ repos:
- id: name-tests-test
args: [--pytest-test-first]
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.3 # must match pyproject.toml
rev: v2.1.5 # must match pyproject.toml
hooks:
- id: pycln
args: [--config=pyproject.toml, .]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.272 # must match pyproject.toml
rev: v0.0.275 # must match pyproject.toml
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 23.3.0 # must match pyproject.toml AND the black used by blacken-docs
hooks:
- id: black
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.13.0 # must match pyproject.toml
rev: 1.14.0 # must match pyproject.toml
hooks:
- id: blacken-docs
additional_dependencies: [black==23.3.0]
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@ docs = [
"MarkDown==3.3.7",
"mkdocs==1.4.3",
"mkdocs-macros-plugin==1.0.1",
"mkdocs-material==9.1.14",
"mkdocstrings[python]==0.21.2",
"mkdocs-material==9.1.17",
"mkdocstrings[python]==0.22.0",
]
pytest = [
"typeshed-stats[rich]",
"beautifulsoup4>=4,<5",
"covdefaults==2.3.0",
"coverage==6.5.0",
"Markdown>=3,<4",
AlexWaygood marked this conversation as resolved.
Show resolved Hide resolved
"pytest==7.3.1",
"pytest==7.4.0",
"pytest-antilru==1.1.1",
"pytest-asyncio==0.21.0",
"pytest-dependency==0.5.1",
"pytest-mock==3.10.0",
"pytest-mock==3.11.1",
"pytest-subtests==0.11.0",
]
typecheck = [
"typeshed-stats[rich,docs,pytest]",
"mypy==1.3.0",
"mypy==1.4.1",
"types-beautifulsoup4==4.12.0.5",
"types-Markdown==3.4.2.9",
]
Expand All @@ -84,10 +84,10 @@ typecheck = [
# This file just lists the ones which it's convenient to have around locally.
misc-lint = [
"black==23.3.0",
"blacken-docs==1.13.0",
"blacken-docs==1.14.0",
"pre-commit-hooks==4.4.0",
"pycln==2.1.3",
"ruff==0.0.272",
"pycln==2.1.5",
"ruff==0.0.275",
]
dev = ["typeshed-stats[rich,docs,typecheck,pytest,misc-lint]"]

Expand Down
2 changes: 1 addition & 1 deletion src/typeshed_stats/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

_CATTRS_CONVERTER.register_unstructure_hook(_NiceReprEnum, attrgetter("name"))
_CATTRS_CONVERTER.register_unstructure_hook(Path, Path.as_posix)
_CATTRS_CONVERTER.register_structure_hook(_NiceReprEnum, lambda d, t: t[d]) # type: ignore[index,no-any-return]
_CATTRS_CONVERTER.register_structure_hook(_NiceReprEnum, lambda d, t: t[d]) # type: ignore[index]
_CATTRS_CONVERTER.register_structure_hook(
Path, lambda d, t: Path(d)
) # pragma: no branch
Expand Down