Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 21, 2023
1 parent 117dafc commit 18b1cbe
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 27 deletions.
8 changes: 3 additions & 5 deletions src/github3/actions/__init__.py
Expand Up @@ -7,11 +7,9 @@
See also: http://developer.github.com/v3/actions/
"""
from .secrets import (
OrganizationSecret,
RepositorySecret,
SharedOrganizationSecret,
)
from .secrets import OrganizationSecret
from .secrets import RepositorySecret
from .secrets import SharedOrganizationSecret

__all__ = (
"OrganizationSecret",
Expand Down
1 change: 0 additions & 1 deletion src/github3/actions/secrets.py
@@ -1,5 +1,4 @@
"""This module contains all the classes relating to GitHub Actions secrets."""

from .. import models


Expand Down
4 changes: 2 additions & 2 deletions src/github3/orgs.py
Expand Up @@ -4,15 +4,15 @@

from uritemplate import URITemplate

from . import exceptions
from . import models
from . import users
from .actions import secrets as actionsecrets
from .decorators import requires_auth
from .events import Event
from .projects import Project
from .repos import Repository
from .repos import ShortRepository
from . import exceptions
from .actions import secrets as actionsecrets

if t.TYPE_CHECKING:
from . import users as _users
Expand Down
2 changes: 1 addition & 1 deletion src/github3/repos/repo.py
Expand Up @@ -6,9 +6,9 @@
"""
import base64
import json as jsonlib
import typing

import uritemplate as urit
import typing

from . import branch
from . import comment
Expand Down
Expand Up @@ -757,4 +757,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
Expand Up @@ -1030,4 +1030,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
Expand Up @@ -757,4 +757,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/OrganizationSecrets_delete_secret.json
Expand Up @@ -373,4 +373,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/OrganizationSecrets_public_key.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/OrganizationSecrets_secret.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/OrganizationSecrets_secrets.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/Repository_create_or_update_secret.json
Expand Up @@ -511,4 +511,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/Repository_delete_secret.json
Expand Up @@ -373,4 +373,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/Repository_organization-secrets.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/Repository_public_key.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/Repository_secret.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
2 changes: 1 addition & 1 deletion tests/cassettes/Repository_secrets.json
Expand Up @@ -265,4 +265,4 @@
}
],
"recorded_with": "betamax/0.8.1"
}
}
3 changes: 2 additions & 1 deletion tests/integration/test_orgs.py
@@ -1,7 +1,8 @@
"""Integration tests for methods implemented on Organization."""
import pytest
import datetime

import pytest

import github3
from .helper import IntegrationHelper

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/json/organization_secret_example
Expand Up @@ -4,4 +4,4 @@
"updated_at": "2020-01-10T14:59:22Z",
"visibility": "selected",
"selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/EXAMPLE_SECRET/repositories"
}
}
2 changes: 1 addition & 1 deletion tests/unit/json/secret_example
Expand Up @@ -2,4 +2,4 @@
"name": "EXAMPLE_SECRET",
"created_at": "2019-08-10T14:59:22Z",
"updated_at": "2020-01-10T14:59:22Z"
}
}
3 changes: 1 addition & 2 deletions tests/unit/test_secrets.py
@@ -1,9 +1,8 @@
"""Secret unit tests."""
import pytest

from . import helper

import github3
from . import helper

get_secret_examlple_data = helper.create_example_data_helper("secret_example")
get_organization_secret_example_data = helper.create_example_data_helper(
Expand Down

0 comments on commit 18b1cbe

Please sign in to comment.