Skip to content

Commit 18b1cbe

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 117dafc commit 18b1cbe

21 files changed

+24
-27
lines changed

src/github3/actions/__init__.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
88
See also: http://developer.github.com/v3/actions/
99
"""
10-
from .secrets import (
11-
OrganizationSecret,
12-
RepositorySecret,
13-
SharedOrganizationSecret,
14-
)
10+
from .secrets import OrganizationSecret
11+
from .secrets import RepositorySecret
12+
from .secrets import SharedOrganizationSecret
1513

1614
__all__ = (
1715
"OrganizationSecret",

src/github3/actions/secrets.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""This module contains all the classes relating to GitHub Actions secrets."""
2-
32
from .. import models
43

54

src/github3/orgs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
from uritemplate import URITemplate
66

7+
from . import exceptions
78
from . import models
89
from . import users
10+
from .actions import secrets as actionsecrets
911
from .decorators import requires_auth
1012
from .events import Event
1113
from .projects import Project
1214
from .repos import Repository
1315
from .repos import ShortRepository
14-
from . import exceptions
15-
from .actions import secrets as actionsecrets
1616

1717
if t.TYPE_CHECKING:
1818
from . import users as _users

src/github3/repos/repo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"""
77
import base64
88
import json as jsonlib
9+
import typing
910

1011
import uritemplate as urit
11-
import typing
1212

1313
from . import branch
1414
from . import comment

tests/cassettes/OrganizationSecrets_add_repo_to_shared_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,4 +757,4 @@
757757
}
758758
],
759759
"recorded_with": "betamax/0.8.1"
760-
}
760+
}

tests/cassettes/OrganizationSecrets_create_or_update_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1030,4 +1030,4 @@
10301030
}
10311031
],
10321032
"recorded_with": "betamax/0.8.1"
1033-
}
1033+
}

tests/cassettes/OrganizationSecrets_delete_repo_from_shared_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,4 +757,4 @@
757757
}
758758
],
759759
"recorded_with": "betamax/0.8.1"
760-
}
760+
}

tests/cassettes/OrganizationSecrets_delete_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,4 @@
373373
}
374374
],
375375
"recorded_with": "betamax/0.8.1"
376-
}
376+
}

tests/cassettes/OrganizationSecrets_public_key.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/cassettes/OrganizationSecrets_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/cassettes/OrganizationSecrets_secrets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/cassettes/Repository_create_or_update_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,4 +511,4 @@
511511
}
512512
],
513513
"recorded_with": "betamax/0.8.1"
514-
}
514+
}

tests/cassettes/Repository_delete_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,4 @@
373373
}
374374
],
375375
"recorded_with": "betamax/0.8.1"
376-
}
376+
}

tests/cassettes/Repository_organization-secrets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/cassettes/Repository_public_key.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/cassettes/Repository_secret.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/cassettes/Repository_secrets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
}
266266
],
267267
"recorded_with": "betamax/0.8.1"
268-
}
268+
}

tests/integration/test_orgs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""Integration tests for methods implemented on Organization."""
2-
import pytest
32
import datetime
43

4+
import pytest
5+
56
import github3
67
from .helper import IntegrationHelper
78

tests/unit/json/organization_secret_example

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"updated_at": "2020-01-10T14:59:22Z",
55
"visibility": "selected",
66
"selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/EXAMPLE_SECRET/repositories"
7-
}
7+
}

tests/unit/json/secret_example

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"name": "EXAMPLE_SECRET",
33
"created_at": "2019-08-10T14:59:22Z",
44
"updated_at": "2020-01-10T14:59:22Z"
5-
}
5+
}

tests/unit/test_secrets.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
"""Secret unit tests."""
22
import pytest
33

4-
from . import helper
5-
64
import github3
5+
from . import helper
76

87
get_secret_examlple_data = helper.create_example_data_helper("secret_example")
98
get_organization_secret_example_data = helper.create_example_data_helper(

0 commit comments

Comments
 (0)