Skip to content

[pre-commit.ci] pre-commit autoupdate #44

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-docstring-first
- id: check-yaml
Expand All @@ -9,26 +9,26 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.2.0
hooks:
- id: flake8
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
rev: v3.15.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, "from __future__ import annotations"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies: ["types-PyYAML", "types-python-dateutil"]
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 25.1.0
hooks:
- id: black
additional_dependencies: ["click==8.0.2"]
Expand Down
4 changes: 2 additions & 2 deletions graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def to_display_graph(graph: Graph) -> DisplayGraph:
@contextmanager
def persisted_graph(
path: str | Path, flush: bool = False, persist: bool = True
) -> Generator[Graph, None, None]:
) -> Generator[Graph]:
if not flush:
try:
graph = Graph.load(path)
Expand Down Expand Up @@ -330,7 +330,7 @@ def persisted_graph(
async def RateLimitedSession(
config: Config,
auth: str | None = None,
) -> AsyncGenerator[ClientSession, None]:
) -> AsyncGenerator[ClientSession]:
auth = auth or config.notion_key
headers = {
'Authorization': f'Bearer {auth}',
Expand Down