RepoAuditor 0.2.9__tar.gz → 0.2.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. {repoauditor-0.2.9 → repoauditor-0.2.11}/PKG-INFO +1 -1
  2. {repoauditor-0.2.9 → repoauditor-0.2.11}/pyproject.toml +2 -2
  3. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/CommandLineProcessor.py +10 -5
  4. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/EntryPoint.py +1 -1
  5. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/ExecuteModules.py +2 -2
  6. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Module.py +2 -2
  7. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugin.py +1 -1
  8. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +1 -1
  9. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowForcePushes.py +1 -1
  10. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +1 -1
  11. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +1 -1
  12. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +1 -1
  13. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +1 -1
  14. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +1 -1
  15. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +1 -1
  16. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +1 -1
  17. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +1 -1
  18. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +1 -1
  19. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +1 -1
  20. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +1 -1
  21. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +1 -1
  22. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/Protected.py +1 -1
  23. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/Module.py +3 -2
  24. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/AutoMerge.py +1 -1
  25. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DefaultBranch.py +1 -1
  26. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DeleteHeadBranches.py +1 -1
  27. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DependabotSecurityUpdates.py +1 -1
  28. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Description.py +1 -1
  29. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/License.py +1 -1
  30. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommit.py +1 -1
  31. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommitMessage.py +1 -1
  32. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Private.py +1 -1
  33. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/RebaseMergeCommit.py +1 -1
  34. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanning.py +1 -1
  35. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanningPushProtection.py +1 -1
  36. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashCommitMerge.py +1 -1
  37. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashMergeCommitMessage.py +1 -1
  38. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SuggestUpdatingPullRequestBranches.py +1 -1
  39. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportDiscussions.py +1 -1
  40. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportIssues.py +1 -1
  41. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportProjects.py +1 -1
  42. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportWikis.py +1 -1
  43. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/TemplateRepository.py +1 -1
  44. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/WebCommitSignoff.py +1 -1
  45. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Query.py +1 -1
  46. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/__init__.py +1 -1
  47. {repoauditor-0.2.9 → repoauditor-0.2.11}/.copier-answers.yml +0 -0
  48. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/CODEOWNERS +0 -0
  49. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  50. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  51. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/ISSUE_TEMPLATE/custom.md +0 -0
  52. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  53. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/actions/release_impl/action.yml +0 -0
  54. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/pull_request_template.md +0 -0
  55. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/release_sources.yaml +0 -0
  56. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/workflows/CICD.yml +0 -0
  57. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/workflows/CICD_impl.yml +0 -0
  58. {repoauditor-0.2.9 → repoauditor-0.2.11}/.github/workflows/codeql.yml +0 -0
  59. {repoauditor-0.2.9 → repoauditor-0.2.11}/.gitignore +0 -0
  60. {repoauditor-0.2.9 → repoauditor-0.2.11}/.pre-commit-config.yaml +0 -0
  61. {repoauditor-0.2.9 → repoauditor-0.2.11}/.python-version +0 -0
  62. {repoauditor-0.2.9 → repoauditor-0.2.11}/CODE_OF_CONDUCT.md +0 -0
  63. {repoauditor-0.2.9 → repoauditor-0.2.11}/CONTRIBUTING.md +0 -0
  64. {repoauditor-0.2.9 → repoauditor-0.2.11}/DEVELOPMENT.md +0 -0
  65. {repoauditor-0.2.9 → repoauditor-0.2.11}/GOVERNANCE.md +0 -0
  66. {repoauditor-0.2.9 → repoauditor-0.2.11}/LICENSE +0 -0
  67. {repoauditor-0.2.9 → repoauditor-0.2.11}/MAINTAINERS.md +0 -0
  68. {repoauditor-0.2.9 → repoauditor-0.2.11}/README.md +0 -0
  69. {repoauditor-0.2.9 → repoauditor-0.2.11}/SECURITY.md +0 -0
  70. {repoauditor-0.2.9 → repoauditor-0.2.11}/minisign_key.pub +0 -0
  71. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/AutoGitSemVer.yaml +0 -0
  72. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
  73. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Impl/__init__.py +0 -0
  74. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
  75. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
  76. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
  77. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
  78. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
  79. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
  80. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/__init__.py +0 -0
  81. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
  82. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
  83. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
  84. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
  85. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
  86. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardEnableRequirementImpl.py +0 -0
  87. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardValueRequirementImpl.py +0 -0
  88. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/__init__.py +0 -0
  89. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/__init__.py +0 -0
  90. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
  91. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
  92. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Plugins/__init__.py +0 -0
  93. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/Requirement.py +0 -0
  94. {repoauditor-0.2.9 → repoauditor-0.2.11}/src/RepoAuditor/py.typed +0 -0
  95. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/CommandLineProcessor_UnitTest.py +0 -0
  96. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/EntryPoint_UnitTest.py +0 -0
  97. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/ExecuteModules_UnitTest.py +0 -0
  98. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Module_UnitTest.py +0 -0
  99. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Plugin_UnitTest.py +0 -0
  100. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Plugins/GitHubModule_UnitTest.py +0 -0
  101. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Plugins/GitHub_EndToEndTest.py +0 -0
  102. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
  103. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Plugins/utilities.py +0 -0
  104. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Query_UnitTest.py +0 -0
  105. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/Requirement_UnitTest.py +0 -0
  106. {repoauditor-0.2.9 → repoauditor-0.2.11}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
  107. {repoauditor-0.2.9 → repoauditor-0.2.11}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RepoAuditor
3
- Version: 0.2.9
3
+ Version: 0.2.11
4
4
  Summary: Add your description here
5
5
  Project-URL: Homepage, https://github.com/gt-sse-center/RepoAuditor
6
6
  Project-URL: Documentation, https://github.com/gt-sse-center/RepoAuditor
@@ -78,7 +78,7 @@ select = [
78
78
  #"ERA", # 168
79
79
  "FAST",
80
80
  "YTT",
81
- # "ANN", # 41
81
+ "ANN",
82
82
  "ASYNC",
83
83
  "S",
84
84
  "BLE",
@@ -91,7 +91,7 @@ select = [
91
91
  "DTZ",
92
92
  "T10",
93
93
  "DJ",
94
- # "EM", # 9
94
+ "EM", # 9
95
95
  "EXE",
96
96
  "FIX",
97
97
  "FA",
@@ -70,11 +70,13 @@ class CommandLineProcessor:
70
70
 
71
71
  for module in modules:
72
72
  if argument_separator in module.name:
73
- raise Exception(f"The module name '{module.name}' contains '{argument_separator}'.")
73
+ msg = f"The module name '{module.name}' contains '{argument_separator}'."
74
+ raise Exception(msg)
74
75
 
75
76
  prev_module = module_map.get(module.name, None)
76
77
  if prev_module is not None:
77
- raise Exception(f"The module '{module.name}' has already been defined.")
78
+ msg = f"The module '{module.name}' has already been defined."
79
+ raise Exception(msg)
78
80
 
79
81
  module_map[module.name] = module
80
82
 
@@ -89,7 +91,8 @@ class CommandLineProcessor:
89
91
 
90
92
  this_module = module_map.get(parts[0], None)
91
93
  if this_module is None:
92
- raise Exception(f"'{parts[0]}' is not a recognized module name.")
94
+ msg = f"'{parts[0]}' is not a recognized module name."
95
+ raise Exception(msg)
93
96
 
94
97
  if len(parts) == 1:
95
98
  included_modules.add(parts[0])
@@ -115,7 +118,8 @@ class CommandLineProcessor:
115
118
 
116
119
  this_module = module_map.get(parts[0], None)
117
120
  if this_module is None:
118
- raise Exception(f"'{parts[0]}' is not a recognized module name.")
121
+ msg = f"'{parts[0]}' is not a recognized module name."
122
+ raise Exception(msg)
119
123
 
120
124
  if len(parts) == 1:
121
125
  module_map.pop(parts[0])
@@ -168,7 +172,8 @@ class CommandLineProcessor:
168
172
  assert len(parts) >= 2
169
173
 
170
174
  if parts[0] not in module_map:
171
- raise Exception(f"'{parts[0]}' is not a recognized module name.")
175
+ msg = f"'{parts[0]}' is not a recognized module name."
176
+ raise Exception(msg)
172
177
 
173
178
  if len(parts) == 2:
174
179
  dynamic_args.setdefault(parts[0], {})[parts[1]] = value
@@ -34,7 +34,7 @@ ARGUMENT_SEPARATOR = "-"
34
34
  # ----------------------------------------------------------------------
35
35
  class NaturalOrderGrouper(TyperGroup):
36
36
  # ----------------------------------------------------------------------
37
- def list_commands(self, *args, **kwargs):
37
+ def list_commands(self, *args, **kwargs) -> list[str]:
38
38
  return self.commands.keys()
39
39
 
40
40
 
@@ -129,7 +129,7 @@ def Execute(
129
129
  if parallel:
130
130
  # ----------------------------------------------------------------------
131
131
  def Prepare(
132
- context: Any,
132
+ context: Any, # noqa: ANN401
133
133
  on_simple_status_func: Callable[[str], None],
134
134
  ) -> tuple[int, ExecuteTasks.TransformTasksExTypes.TransformFuncType]:
135
135
  module_info = cast(ModuleInfo, context)
@@ -140,7 +140,7 @@ def Execute(
140
140
  status: ExecuteTasks.Status,
141
141
  ) -> ExecuteTasks.TransformResultComplete:
142
142
  # ----------------------------------------------------------------------
143
- def OnStatus(num_completed: int, *args, **kwargs):
143
+ def OnStatus(num_completed: int, *args, **kwargs) -> None:
144
144
  status.OnProgress(
145
145
  num_completed,
146
146
  _CreateStatusString(*args, **kwargs),
@@ -92,7 +92,7 @@ class Module(ABC):
92
92
  def GetDynamicArgDefinitions(self) -> dict[str, TypeDefinitionItemType]:
93
93
  """Returns information about dynamic arguments that the module can consume (often from the command line)."""
94
94
 
95
- raise Exception("Abstract method") # pragma: no cover
95
+ raise Exception("Abstract method") # pragma: no cover # noqa: EM101
96
96
 
97
97
  # ----------------------------------------------------------------------
98
98
  @abstractmethod
@@ -107,7 +107,7 @@ class Module(ABC):
107
107
  exception to indicate that the command line data is invalid.
108
108
  """
109
109
 
110
- raise Exception("Abstract method") # pragma: no cover
110
+ raise Exception("Abstract method") # pragma: no cover # noqa: EM101
111
111
 
112
112
  # ----------------------------------------------------------------------
113
113
  def Evaluate(
@@ -17,4 +17,4 @@ from .Module import Module
17
17
  @pluggy.HookspecMarker(APP_NAME)
18
18
  def GetModule() -> Module:
19
19
  """Returns a Module"""
20
- raise Exception("hookspec") # pragma: no cover
20
+ raise Exception("hookspec") # pragma: no cover # noqa: EM101
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class AllowDeletions(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(AllowDeletions, self).__init__(
19
19
  "AllowDeletions",
20
20
  False,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class AllowForcePushes(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(AllowForcePushes, self).__init__(
19
19
  "AllowForcePushes",
20
20
  False,
@@ -16,7 +16,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class DismissStalePullRequestApprovals(ClassicEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(DismissStalePullRequestApprovals, self).__init__(
21
21
  "DismissStalePullRequestApprovals",
22
22
  True,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class DoNotAllowBypassSettings(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(DoNotAllowBypassSettings, self).__init__(
19
19
  "DoNotAllowBypassSettings",
20
20
  True,
@@ -20,7 +20,7 @@ from RepoAuditor.Requirement import EvaluateResult, ExecutionStyle, Requirement
20
20
  # ----------------------------------------------------------------------
21
21
  class EnsureStatusChecks(Requirement):
22
22
  # ----------------------------------------------------------------------
23
- def __init__(self):
23
+ def __init__(self) -> None:
24
24
  super(EnsureStatusChecks, self).__init__(
25
25
  "EnsureStatusChecks",
26
26
  "Ensure that status checks have been enabled for the branch.",
@@ -16,7 +16,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class RequireApprovalMostRecentPush(ClassicEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(RequireApprovalMostRecentPush, self).__init__(
21
21
  "RequireApprovalMostRecentPush",
22
22
  True,
@@ -16,7 +16,7 @@ from .Impl.ClassicValueRequirementImpl import ClassicValueRequirementImpl, DoesN
16
16
  # ----------------------------------------------------------------------
17
17
  class RequireApprovals(ClassicValueRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(RequireApprovals, self).__init__(
21
21
  "RequireApprovals",
22
22
  "1",
@@ -16,7 +16,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class RequireCodeOwnerReview(ClassicEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(RequireCodeOwnerReview, self).__init__(
21
21
  "RequireCodeOwnerReview",
22
22
  False,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class RequireConversationResolution(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(RequireConversationResolution, self).__init__(
19
19
  "RequireConversationResolution",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class RequireLinearHistory(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(RequireLinearHistory, self).__init__(
19
19
  "RequireLinearHistory",
20
20
  False,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class RequirePullRequests(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(RequirePullRequests, self).__init__(
19
19
  "RequirePullRequests",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class RequireSignedCommits(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(RequireSignedCommits, self).__init__(
19
19
  "RequireSignedCommits",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class RequireStatusChecksToPass(ClassicEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(RequireStatusChecksToPass, self).__init__(
19
19
  "RequireStatusChecksToPass",
20
20
  True,
@@ -16,7 +16,7 @@ from .Impl.ClassicEnableRequirementImpl import ClassicEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class RequireUpToDateBranches(ClassicEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(RequireUpToDateBranches, self).__init__(
21
21
  "RequireUpToDateBranches",
22
22
  True,
@@ -22,7 +22,7 @@ from ..Impl.Common import CreateIncompleteDataResult
22
22
  # ----------------------------------------------------------------------
23
23
  class Protected(Requirement):
24
24
  # ----------------------------------------------------------------------
25
- def __init__(self):
25
+ def __init__(self) -> None:
26
26
  # Note that protected is set for the branch when creating a branch ruleset or a classic
27
27
  # branch protection rule.
28
28
  super(Protected, self).__init__(
@@ -114,7 +114,8 @@ class _GitHubSession(requests.Session):
114
114
  path_parts = url_parts.path.split("/")
115
115
 
116
116
  if len(path_parts) != 3:
117
- raise ValueError(f"'{github_url}' is not a valid GitHub repository URL.")
117
+ msg = f"'{github_url}' is not a valid GitHub repository URL."
118
+ raise ValueError(msg)
118
119
 
119
120
  _, username, repo = path_parts
120
121
 
@@ -140,7 +141,7 @@ class _GitHubSession(requests.Session):
140
141
  url: str,
141
142
  *args,
142
143
  **kwargs,
143
- ):
144
+ ) -> requests.Response:
144
145
  if url and not url.startswith("/"):
145
146
  url = f"/{url}"
146
147
 
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class AutoMerge(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(AutoMerge, self).__init__(
19
19
  "AutoMerge",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.StandardValueRequirementImpl import StandardValueRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class DefaultBranch(StandardValueRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(DefaultBranch, self).__init__(
19
19
  "DefaultBranch",
20
20
  "main",
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class DeleteHeadBranches(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(DeleteHeadBranches, self).__init__(
19
19
  "DeleteHeadBranches",
20
20
  True,
@@ -16,7 +16,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class DependabotSecurityUpdates(StandardEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(DependabotSecurityUpdates, self).__init__(
21
21
  "DependabotSecurityUpdates",
22
22
  True,
@@ -23,7 +23,7 @@ from ..Impl.Common import CreateIncompleteDataResult
23
23
  # ----------------------------------------------------------------------
24
24
  class Description(Requirement):
25
25
  # ----------------------------------------------------------------------
26
- def __init__(self):
26
+ def __init__(self) -> None:
27
27
  super(Description, self).__init__(
28
28
  "Description",
29
29
  "Validates a repository's description.",
@@ -16,7 +16,7 @@ from .Impl.StandardValueRequirementImpl import StandardValueRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class License(StandardValueRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(License, self).__init__(
21
21
  "License",
22
22
  "MIT License",
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class MergeCommit(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(MergeCommit, self).__init__(
19
19
  "MergeCommit",
20
20
  True,
@@ -16,7 +16,7 @@ from .Impl.StandardValueRequirementImpl import DoesNotApplyResult, StandardValue
16
16
  # ----------------------------------------------------------------------
17
17
  class MergeCommitMessage(StandardValueRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(MergeCommitMessage, self).__init__(
21
21
  "MergeCommitMessage",
22
22
  "BLANK",
@@ -22,7 +22,7 @@ from ..Impl.Common import CreateIncompleteDataResult
22
22
  # ----------------------------------------------------------------------
23
23
  class Private(Requirement):
24
24
  # ----------------------------------------------------------------------
25
- def __init__(self):
25
+ def __init__(self) -> None:
26
26
  super(Private, self).__init__(
27
27
  "Private",
28
28
  "Validates that the repository is set to the expected visibility.",
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class RebaseMergeCommit(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(RebaseMergeCommit, self).__init__(
19
19
  "RebaseMergeCommit",
20
20
  False,
@@ -16,7 +16,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class SecretScanning(StandardEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(SecretScanning, self).__init__(
21
21
  "SecretScanning",
22
22
  True,
@@ -16,7 +16,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
16
16
  # ----------------------------------------------------------------------
17
17
  class SecretScanningPushProtection(StandardEnableRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(SecretScanningPushProtection, self).__init__(
21
21
  "SecretScanningPushProtection",
22
22
  True,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class SquashCommitMerge(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(SquashCommitMerge, self).__init__(
19
19
  "SquashCommitMerge",
20
20
  False,
@@ -16,7 +16,7 @@ from .Impl.StandardValueRequirementImpl import DoesNotApplyResult, StandardValue
16
16
  # ----------------------------------------------------------------------
17
17
  class SquashMergeCommitMessage(StandardValueRequirementImpl):
18
18
  # ----------------------------------------------------------------------
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super(SquashMergeCommitMessage, self).__init__(
21
21
  "SquashMergeCommitMessage",
22
22
  "COMMIT_MESSAGES",
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class SuggestUpdatingPullRequestBranches(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(SuggestUpdatingPullRequestBranches, self).__init__(
19
19
  "SuggestUpdatingPullRequestBranches",
20
20
  False,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class SupportDiscussions(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(SupportDiscussions, self).__init__(
19
19
  "SupportDiscussions",
20
20
  False,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class SupportIssues(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(SupportIssues, self).__init__(
19
19
  "SupportIssues",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class SupportProjects(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(SupportProjects, self).__init__(
19
19
  "SupportProjects",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class SupportWikis(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(SupportWikis, self).__init__(
19
19
  "SupportWikis",
20
20
  True,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class TemplateRepository(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(TemplateRepository, self).__init__(
19
19
  "TemplateRepository",
20
20
  False,
@@ -14,7 +14,7 @@ from .Impl.StandardEnableRequirementImpl import StandardEnableRequirementImpl
14
14
  # ----------------------------------------------------------------------
15
15
  class WebCommitSignoff(StandardEnableRequirementImpl):
16
16
  # ----------------------------------------------------------------------
17
- def __init__(self):
17
+ def __init__(self) -> None:
18
18
  super(WebCommitSignoff, self).__init__(
19
19
  "WebCommitSignoff",
20
20
  True,
@@ -132,7 +132,7 @@ class StatusInfo:
132
132
  """Class used to store information required by OnStatusFunc."""
133
133
 
134
134
  # ----------------------------------------------------------------------
135
- def __init__(self):
135
+ def __init__(self) -> None:
136
136
  self.num_completed: int = 0
137
137
  self.num_success: int = 0
138
138
  self.num_error: int = 0
@@ -3,4 +3,4 @@ APP_NAME = "RepoAuditor"
3
3
  # Note that this value will be overwritten by calls to `python ../../Build.py update_version` based
4
4
  # on changes observed in the git repository. The default value below will be used until the value
5
5
  # here is explicitly updated by the Continuous Integration system.
6
- __version__ = "0.2.9"
6
+ __version__ = "0.2.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes