Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jgosmann committed Jan 5, 2023
1 parent b469bf1 commit 97e9cac
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 418 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- repo: https://github.com/PyCQA/isort
rev: 5.11.4
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/PyCQA/pylint
rev: v2.15.5
rev: v2.15.9
hooks:
- id: pylint
additional_dependencies:
Expand All @@ -30,7 +30,7 @@ repos:
- uvicorn==0.15.0
- xsdata==21.9
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.991
hooks:
- id: mypy
additional_dependencies: ["types-requests==2.25.11"]
4 changes: 2 additions & 2 deletions dmarc_metrics_exporter/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from asyncio import CancelledError
from email.message import EmailMessage
from pathlib import Path
from typing import Any, Callable, Sequence, Tuple
from typing import Any, Callable, Optional, Sequence, Tuple

from dmarc_metrics_exporter.deserialization import (
convert_to_events,
Expand Down Expand Up @@ -89,7 +89,7 @@ def __init__(
exporter_cls: Callable[[DmarcMetricsCollection], Any] = PrometheusExporter,
autosave_interval_seconds: float = 60,
deduplication_max_seconds: float = 7 * 24 * 60 * 60,
seen_reports_db: Path = None
seen_reports_db: Optional[Path] = None
):
self.prometheus_addr = prometheus_addr
self.exporter = exporter_cls(DmarcMetricsCollection())
Expand Down
6 changes: 4 additions & 2 deletions dmarc_metrics_exporter/tests/test_imap_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
start_server,
wait_for,
)
from typing import Callable, Coroutine, Dict
from typing import Callable, Coroutine, Dict, Optional

import pytest

Expand Down Expand Up @@ -403,7 +403,9 @@ def __init__(
self,
host: str = "localhost",
port: int = 4143,
command_handlers: Dict[bytes, Callable[[StreamWriter], Coroutine]] = None,
command_handlers: Optional[
Dict[bytes, Callable[[StreamWriter], Coroutine]]
] = None,
):
self.host = host
self.port = port
Expand Down
Loading

0 comments on commit 97e9cac

Please sign in to comment.