Skip to content

Commit

Permalink
Bump black from 23.11.0 to 24.3.0 (#299)
Browse files Browse the repository at this point in the history
* ---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Run black...

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ludeeus <[email protected]>
  • Loading branch information
dependabot[bot] and ludeeus authored May 21, 2024
1 parent 2a5c714 commit 6b29a05
Show file tree
Hide file tree
Showing 74 changed files with 98 additions and 26 deletions.
1 change: 1 addition & 0 deletions aiogithubapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.. include:: ../documentation.md
"""

from .common.exceptions import (
AIOGitHubAPIAuthenticationException,
AIOGitHubAPIException,
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This is the class that do the requests against the API."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/common/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AIOGitHubAPI: Constants"""

from ..const import *

OAUTH_DEVICE_LOGIN = "https://github.com/login/device/code"
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/common/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AIOGitHubAPI: Exceptions"""

from ..exceptions import (
GitHubAuthenticationException,
GitHubException,
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for aiogithubapi."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/developers/apps/authorizing-oauth-apps#device-flow
"""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/github.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AIOGitHubAPI: AIOGitHubAPI"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers for AIOGitHubAPI."""

from __future__ import annotations

from typing import TYPE_CHECKING, Optional
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/legacy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This is the class that do the requests against the API
It also keeps track of ratelimits
"""

# pylint: disable=redefined-builtin, too-many-arguments
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/legacy/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/developers/apps/authorizing-oauth-apps#device-flow
"""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/legacy/github.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AIOGitHubAPI: AIOGitHubAPI"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/legacy/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers for AIOGitHubAPI."""

from asyncio import CancelledError, TimeoutError
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base class for all GitHub objects."""

from __future__ import annotations

from logging import Logger
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/clones.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub clones data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/commit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub commit data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/contents.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub contents data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/device_login.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub device login data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/events.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub Activity event models"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/git_tree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub git data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/issue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub issue data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/issue_comment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub issue_comment data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/label.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub label data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/license.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub license data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/login_oauth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub login oauth data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/meta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub meta data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/milestone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub milestone data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/organization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub organization model."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/permissions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub permissions data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/projects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub projects model."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/pull_request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub pull_request data model."""

from __future__ import annotations

from .issue import GitHubIssueModel
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/rate_limit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub rate limit data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/reaction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub reaction data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub release data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/repository.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub response data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/request_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Dataclass to hold base request details."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/response.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub response data class."""

# pylint: disable=protected-access
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub tag data class."""

from __future__ import annotations

from .base import GitHubDataModelBase
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub user models data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/models/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GitHub views data class."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Used for the GitHub API namespace."""

from ..client import GitHubClient


Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/repos#contents
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/activity#events
"""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/git
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/issues
"""

from __future__ import annotations

from typing import Any, Dict, List
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/orgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/orgs
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/projects
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/pulls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/pulls
"""

from typing import Any, Dict, List

from ..const import GitHubRequestKwarg, RepositoryType
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/repos#releases
"""

from __future__ import annotations

from typing import Any, Dict, List
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/repos
"""

from __future__ import annotations

from typing import Any, Dict, List
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/traffic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.github.com/en/rest/reference/repos#traffic
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/namespaces/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

https://docs.github.com/en/rest/reference/users
"""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AIOGitHubAPI: objects.base"""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/content.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AIOGitHubAPI: objects.content"""

from .base import AIOGitHubAPIBase


Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/login/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Generated by generate/generate.py - 2020-09-08 17:49:51.525706
"""

from ..base import AIOGitHubAPIBase


Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/login/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Generated by generate/generate.py - 2020-09-08 18:45:20.581868
"""

from ..base import AIOGitHubAPIBase


Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/orgs/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Generated by generate/generate.py - 2020-08-02 10:33:09.248066
"""

from ..base import AIOGitHubAPIBase


Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/ratelimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

https://developer.github.com/v3/rate_limit/
"""

# pylint: disable=missing-docstring
from datetime import datetime, timezone

Expand Down
1 change: 1 addition & 0 deletions aiogithubapi/objects/repos/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Generated by generate/generate.py - 2020-08-02 10:29:03.550853
"""

from ..base import AIOGitHubAPIBase


Expand Down
Loading

0 comments on commit 6b29a05

Please sign in to comment.