Set line length to 120 characters (#2599)

This commit is contained in:
Jirka Borovec
2023-07-13 17:37:20 +02:00
committed by GitHub
parent de80ff4b91
commit 13e178a3ab
192 changed files with 1455 additions and 4433 deletions
+3 -9
View File
@@ -46,13 +46,9 @@ class EnvironmentDeploymentBranchPolicy(github.GithubObject.NonCompletableGithub
def _useAttributes(self, attributes):
if "protected_branches" in attributes: # pragma no branch
self._protected_branches = self._makeBoolAttribute(
attributes["protected_branches"]
)
self._protected_branches = self._makeBoolAttribute(attributes["protected_branches"])
if "custom_branch_policies" in attributes: # pragma no branch
self._custom_branch_policies = self._makeBoolAttribute(
attributes["custom_branch_policies"]
)
self._custom_branch_policies = self._makeBoolAttribute(attributes["custom_branch_policies"])
class EnvironmentDeploymentBranchPolicyParams:
@@ -60,9 +56,7 @@ class EnvironmentDeploymentBranchPolicyParams:
This class presents the deployment branch policy parameters as can be configured for an Environment.
"""
def __init__(
self, protected_branches: bool = False, custom_branch_policies: bool = False
):
def __init__(self, protected_branches: bool = False, custom_branch_policies: bool = False):
assert isinstance(protected_branches, bool)
assert isinstance(custom_branch_policies, bool)
self.protected_branches = protected_branches