RepoAuditor 0.2.8__tar.gz → 0.2.10__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.8 → repoauditor-0.2.10}/PKG-INFO +1 -1
  2. {repoauditor-0.2.8 → repoauditor-0.2.10}/pyproject.toml +4 -3
  3. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/EntryPoint.py +1 -1
  4. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/ExecuteModules.py +2 -2
  5. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +1 -1
  6. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowForcePushes.py +1 -1
  7. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +1 -1
  8. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +1 -1
  9. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +1 -1
  10. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +1 -1
  11. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +1 -1
  12. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +1 -1
  13. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +1 -1
  14. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +1 -1
  15. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +1 -1
  16. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +1 -1
  17. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +1 -1
  18. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +1 -1
  19. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/Protected.py +1 -1
  20. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/Module.py +2 -3
  21. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/AutoMerge.py +1 -1
  22. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DefaultBranch.py +1 -1
  23. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DeleteHeadBranches.py +1 -1
  24. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DependabotSecurityUpdates.py +1 -1
  25. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Description.py +1 -1
  26. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/License.py +1 -1
  27. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommit.py +1 -1
  28. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommitMessage.py +1 -1
  29. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Private.py +1 -1
  30. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/RebaseMergeCommit.py +1 -1
  31. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanning.py +1 -1
  32. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanningPushProtection.py +1 -1
  33. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashCommitMerge.py +1 -1
  34. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashMergeCommitMessage.py +1 -1
  35. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SuggestUpdatingPullRequestBranches.py +1 -1
  36. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportDiscussions.py +1 -1
  37. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportIssues.py +1 -1
  38. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportProjects.py +1 -1
  39. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportWikis.py +1 -1
  40. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/TemplateRepository.py +1 -1
  41. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/WebCommitSignoff.py +1 -1
  42. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Query.py +1 -1
  43. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/__init__.py +1 -1
  44. {repoauditor-0.2.8 → repoauditor-0.2.10}/.copier-answers.yml +0 -0
  45. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/CODEOWNERS +0 -0
  46. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  47. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  48. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/ISSUE_TEMPLATE/custom.md +0 -0
  49. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  50. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/actions/release_impl/action.yml +0 -0
  51. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/pull_request_template.md +0 -0
  52. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/release_sources.yaml +0 -0
  53. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/workflows/CICD.yml +0 -0
  54. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/workflows/CICD_impl.yml +0 -0
  55. {repoauditor-0.2.8 → repoauditor-0.2.10}/.github/workflows/codeql.yml +0 -0
  56. {repoauditor-0.2.8 → repoauditor-0.2.10}/.gitignore +0 -0
  57. {repoauditor-0.2.8 → repoauditor-0.2.10}/.pre-commit-config.yaml +0 -0
  58. {repoauditor-0.2.8 → repoauditor-0.2.10}/.python-version +0 -0
  59. {repoauditor-0.2.8 → repoauditor-0.2.10}/CODE_OF_CONDUCT.md +0 -0
  60. {repoauditor-0.2.8 → repoauditor-0.2.10}/CONTRIBUTING.md +0 -0
  61. {repoauditor-0.2.8 → repoauditor-0.2.10}/DEVELOPMENT.md +0 -0
  62. {repoauditor-0.2.8 → repoauditor-0.2.10}/GOVERNANCE.md +0 -0
  63. {repoauditor-0.2.8 → repoauditor-0.2.10}/LICENSE +0 -0
  64. {repoauditor-0.2.8 → repoauditor-0.2.10}/MAINTAINERS.md +0 -0
  65. {repoauditor-0.2.8 → repoauditor-0.2.10}/README.md +0 -0
  66. {repoauditor-0.2.8 → repoauditor-0.2.10}/SECURITY.md +0 -0
  67. {repoauditor-0.2.8 → repoauditor-0.2.10}/minisign_key.pub +0 -0
  68. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/AutoGitSemVer.yaml +0 -0
  69. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/CommandLineProcessor.py +0 -0
  70. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
  71. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Impl/__init__.py +0 -0
  72. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Module.py +0 -0
  73. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugin.py +0 -0
  74. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
  75. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
  76. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
  77. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
  78. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
  79. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
  80. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/__init__.py +0 -0
  81. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
  82. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
  83. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
  84. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
  85. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
  86. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardEnableRequirementImpl.py +0 -0
  87. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardValueRequirementImpl.py +0 -0
  88. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/__init__.py +0 -0
  89. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/__init__.py +0 -0
  90. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
  91. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
  92. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Plugins/__init__.py +0 -0
  93. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/Requirement.py +0 -0
  94. {repoauditor-0.2.8 → repoauditor-0.2.10}/src/RepoAuditor/py.typed +0 -0
  95. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/CommandLineProcessor_UnitTest.py +0 -0
  96. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/EntryPoint_UnitTest.py +0 -0
  97. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/ExecuteModules_UnitTest.py +0 -0
  98. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Module_UnitTest.py +0 -0
  99. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Plugin_UnitTest.py +0 -0
  100. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Plugins/GitHubModule_UnitTest.py +0 -0
  101. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Plugins/GitHub_EndToEndTest.py +0 -0
  102. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
  103. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Plugins/utilities.py +0 -0
  104. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Query_UnitTest.py +0 -0
  105. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/Requirement_UnitTest.py +0 -0
  106. {repoauditor-0.2.8 → repoauditor-0.2.10}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
  107. {repoauditor-0.2.8 → repoauditor-0.2.10}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RepoAuditor
3
- Version: 0.2.8
3
+ Version: 0.2.10
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",
@@ -113,7 +113,7 @@ select = [
113
113
  "SLOT",
114
114
  # "TID", # 9
115
115
  "TD",
116
- # "TC", # 2
116
+ "TC",
117
117
  # "ARG", # 5
118
118
  "PTH",
119
119
  "FLY",
@@ -131,7 +131,7 @@ select = [
131
131
  # "PGH", # 5
132
132
  # "PL", # 11
133
133
  # "UP", # 100
134
- # "FURB", # 1
134
+ "FURB",
135
135
  "RUF",
136
136
  # "TRY", # 16
137
137
 
@@ -149,6 +149,7 @@ ignore = [
149
149
  "N999", # Invalid module name
150
150
  "RSE102", # Unnecessary parentheses on raise exception
151
151
  "S101", # Use of assert detected
152
+ "TC006", # Add quotes to type expression in `typing.cast()`
152
153
  "UP032", # Use f-string instead of `format` call
153
154
  ]
154
155
 
@@ -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),
@@ -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__(
@@ -108,8 +108,7 @@ class _GitHubSession(requests.Session):
108
108
 
109
109
  self.headers["Authorization"] = f"Bearer {github_pat}"
110
110
 
111
- if github_url.endswith("/"):
112
- github_url = github_url[:-1]
111
+ github_url = github_url.removesuffix("/")
113
112
 
114
113
  url_parts = urlparse(github_url)
115
114
  path_parts = url_parts.path.split("/")
@@ -141,7 +140,7 @@ class _GitHubSession(requests.Session):
141
140
  url: str,
142
141
  *args,
143
142
  **kwargs,
144
- ):
143
+ ) -> requests.Response:
145
144
  if url and not url.startswith("/"):
146
145
  url = f"/{url}"
147
146
 
@@ -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.8"
6
+ __version__ = "0.2.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes