Skip to content

Commit

Permalink
feat(deps): update dependency black to v24
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and unicodeveloper committed Feb 26, 2024
1 parent fcd2f37 commit fb04fcc
Show file tree
Hide file tree
Showing 56 changed files with 79 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: absolufy-imports

- repo: https://github.com/ambv/black
rev: "23.12.1"
rev: "24.2.0"
hooks:
- id: black
language_version: python3.9
Expand Down
1 change: 1 addition & 0 deletions novu/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
In this SDK, we choose to split the Novu API by business resource to simplify its complexity.
"""

from novu.api.blueprint import BlueprintApi
from novu.api.change import ChangeApi
from novu.api.environment import EnvironmentApi
Expand Down
1 change: 1 addition & 0 deletions novu/api/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to defined an abstract class for all reusable methods to communicate with the Novu API"""

import copy
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions novu/api/blueprint.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module is used to define the ``BlueprintApi``,
a python wrapper to interact with ``Blueprint`` in Novu."""

from typing import Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/change.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``ChangeApi``, a python wrapper to interact with ``Changes`` in Novu.
"""

from typing import Dict, Generator, List, Optional, Union

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/environment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``EnvironmentApi``, a python wrapper to interact with ``Environments`` in Novu.
"""

from typing import Dict, Iterator, Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/event.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``EventApi``, a python wrapper to interact with ``Events`` in Novu.
"""

from collections.abc import Iterable
from typing import Dict, Iterable as _Iterable, List, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions novu/api/execution_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is used to define the ``ExecutionDetailApi``, a python wrapper
to interact with ``ExecutionDetails`` in Novu.
"""

from typing import Iterator, Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/feed.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``FeedApi``, a python wrapper to interact with ``Feeds`` in Novu.
"""

from typing import Iterator, Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/inbound_parse.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``InboundParseApi``, a python wrapper to interact with ``InboundParse`` in Novu.
"""

from typing import Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/integration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``IntregrationApi``, a python wrapper to interact with ``Integrations`` in Novu.
"""

from typing import Iterator, Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/layout.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``LayoutApi``, a python wrapper to interact with ``Layouts`` in Novu.
"""

from typing import Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/message.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``MessageApi``, a python wrapper to interact with ``Messages`` in Novu.
"""

from typing import Dict, Optional, Union

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/notification.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module is used to define the ``NotificationAPI`, a python wrapper
to interact with ``Notifications`` in Novu.
"""

from typing import Iterator, List, Optional, Tuple

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/notification_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is used to define the ``NotificationGroupApi``, a python wrapper
to interact with ``NotificationGroup`` in Novu.
"""

from typing import Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/notification_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is used to define the ``NotificationTemplateApi``, a python wrapper
to interact with ``NotificationTemplate`` in Novu.
"""

from typing import Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/organization.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``OrganizationApi``, a python wrapper to interact with ``Organizations`` in Novu.
"""

from typing import Iterator, Optional

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/subscriber.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``SubscriberApi``, a python wrapper to interact with ``Subscribers`` in Novu.
"""

from typing import Dict, Iterator, List, Optional, Union

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/tenant.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``TenantApi``, a python wrapper to interact with ``Tenants`` in Novu.
"""

from typing import Dict, Optional, Union

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/api/topic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module is used to define the ``TopicApi``, a python wrapper to interact with ``Topics`` in Novu.
"""

from typing import Dict, List, Optional, Tuple, Union

import requests
Expand Down
1 change: 1 addition & 0 deletions novu/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to define a configuration ``NovuConfig`` reusable through the package."""

from novu.helpers import Singleton


Expand Down
1 change: 1 addition & 0 deletions novu/dto/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to defined all helpers to parse and send well-formatted data to the Novu API"""

import dataclasses
import re
from typing import ClassVar, Generic, Iterable, List, Optional, Type, TypeVar, Union
Expand Down
1 change: 1 addition & 0 deletions novu/dto/blueprint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Blueprint resource in Novu"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/change.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Change resource in Novu"""

import dataclasses
from typing import Any, List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/environment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Environment resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Event resource in Novu"""

import dataclasses
from typing import List, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions novu/dto/execution_detail.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Execution Detail resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/feed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Feed resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Event resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Integration resource in Novu"""

import dataclasses
from typing import Dict, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions novu/dto/layout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Layout resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/member.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Member resource in Novu."""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Message resource in Novu"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Notifications resource in Novu"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/notification_group.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Notification Group resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/notification_template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Notification Template resource in Novu"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
This separation of resources allows you to manage multi-tenant environments and
separate domains within a single account.
"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/step_filter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Step Filter resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/subscriber.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Subscriber resource in Novu"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/tenant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Tenant resource in Novu"""

import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions novu/dto/topic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather all DTO definitions related to the Topic resource in Novu"""

import dataclasses
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions novu/enums/change.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Change resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/channel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Channel resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Event resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/execution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Execution resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Field resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/member.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Provider resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Notification resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/organization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Provider resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/polyfill.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Polyfill of backports related to enums."""

try:
from enum import StrEnum # type: ignore[attr-defined]
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions novu/enums/provider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Provider resource in Novu"""

from typing import Union

from novu.enums.polyfill import StrEnum
Expand Down
1 change: 1 addition & 0 deletions novu/enums/step_filter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Step Filter resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/enums/template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather enumerations related to the Template resource in Novu"""

from novu.enums.polyfill import StrEnum


Expand Down
1 change: 1 addition & 0 deletions novu/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module is used to gather helpers reused through the package."""

import importlib
from typing import Dict

Expand Down
Loading

0 comments on commit fb04fcc

Please sign in to comment.