RepoAuditor 0.2.10__tar.gz → 0.2.12__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.10 → repoauditor-0.2.12}/PKG-INFO +1 -1
  2. {repoauditor-0.2.10 → repoauditor-0.2.12}/pyproject.toml +2 -2
  3. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/CommandLineProcessor.py +12 -7
  4. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +3 -3
  5. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Module.py +2 -2
  6. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugin.py +1 -1
  7. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/Module.py +2 -1
  8. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/__init__.py +1 -1
  9. {repoauditor-0.2.10 → repoauditor-0.2.12}/.copier-answers.yml +0 -0
  10. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/CODEOWNERS +0 -0
  11. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  12. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  13. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/ISSUE_TEMPLATE/custom.md +0 -0
  14. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  15. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/actions/release_impl/action.yml +0 -0
  16. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/pull_request_template.md +0 -0
  17. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/release_sources.yaml +0 -0
  18. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/workflows/CICD.yml +0 -0
  19. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/workflows/CICD_impl.yml +0 -0
  20. {repoauditor-0.2.10 → repoauditor-0.2.12}/.github/workflows/codeql.yml +0 -0
  21. {repoauditor-0.2.10 → repoauditor-0.2.12}/.gitignore +0 -0
  22. {repoauditor-0.2.10 → repoauditor-0.2.12}/.pre-commit-config.yaml +0 -0
  23. {repoauditor-0.2.10 → repoauditor-0.2.12}/.python-version +0 -0
  24. {repoauditor-0.2.10 → repoauditor-0.2.12}/CODE_OF_CONDUCT.md +0 -0
  25. {repoauditor-0.2.10 → repoauditor-0.2.12}/CONTRIBUTING.md +0 -0
  26. {repoauditor-0.2.10 → repoauditor-0.2.12}/DEVELOPMENT.md +0 -0
  27. {repoauditor-0.2.10 → repoauditor-0.2.12}/GOVERNANCE.md +0 -0
  28. {repoauditor-0.2.10 → repoauditor-0.2.12}/LICENSE +0 -0
  29. {repoauditor-0.2.10 → repoauditor-0.2.12}/MAINTAINERS.md +0 -0
  30. {repoauditor-0.2.10 → repoauditor-0.2.12}/README.md +0 -0
  31. {repoauditor-0.2.10 → repoauditor-0.2.12}/SECURITY.md +0 -0
  32. {repoauditor-0.2.10 → repoauditor-0.2.12}/minisign_key.pub +0 -0
  33. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/AutoGitSemVer.yaml +0 -0
  34. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/EntryPoint.py +0 -0
  35. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/ExecuteModules.py +0 -0
  36. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Impl/__init__.py +0 -0
  37. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
  38. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +0 -0
  39. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowForcePushes.py +0 -0
  40. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +0 -0
  41. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +0 -0
  42. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +0 -0
  43. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
  44. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
  45. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
  46. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +0 -0
  47. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
  48. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +0 -0
  49. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +0 -0
  50. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +0 -0
  51. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +0 -0
  52. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +0 -0
  53. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +0 -0
  54. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +0 -0
  55. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
  56. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
  57. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/Protected.py +0 -0
  58. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/__init__.py +0 -0
  59. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
  60. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
  61. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
  62. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
  63. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
  64. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/AutoMerge.py +0 -0
  65. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DefaultBranch.py +0 -0
  66. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DeleteHeadBranches.py +0 -0
  67. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DependabotSecurityUpdates.py +0 -0
  68. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Description.py +0 -0
  69. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardEnableRequirementImpl.py +0 -0
  70. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardValueRequirementImpl.py +0 -0
  71. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/__init__.py +0 -0
  72. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/License.py +0 -0
  73. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommit.py +0 -0
  74. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommitMessage.py +0 -0
  75. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Private.py +0 -0
  76. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/RebaseMergeCommit.py +0 -0
  77. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanning.py +0 -0
  78. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanningPushProtection.py +0 -0
  79. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashCommitMerge.py +0 -0
  80. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashMergeCommitMessage.py +0 -0
  81. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SuggestUpdatingPullRequestBranches.py +0 -0
  82. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportDiscussions.py +0 -0
  83. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportIssues.py +0 -0
  84. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportProjects.py +0 -0
  85. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportWikis.py +0 -0
  86. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/TemplateRepository.py +0 -0
  87. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/WebCommitSignoff.py +0 -0
  88. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/__init__.py +0 -0
  89. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
  90. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
  91. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Plugins/__init__.py +0 -0
  92. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Query.py +0 -0
  93. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/Requirement.py +0 -0
  94. {repoauditor-0.2.10 → repoauditor-0.2.12}/src/RepoAuditor/py.typed +0 -0
  95. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/CommandLineProcessor_UnitTest.py +0 -0
  96. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/EntryPoint_UnitTest.py +0 -0
  97. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/ExecuteModules_UnitTest.py +0 -0
  98. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Module_UnitTest.py +0 -0
  99. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Plugin_UnitTest.py +0 -0
  100. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Plugins/GitHubModule_UnitTest.py +0 -0
  101. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Plugins/GitHub_EndToEndTest.py +0 -0
  102. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
  103. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Plugins/utilities.py +0 -0
  104. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Query_UnitTest.py +0 -0
  105. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/Requirement_UnitTest.py +0 -0
  106. {repoauditor-0.2.10 → repoauditor-0.2.12}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
  107. {repoauditor-0.2.10 → repoauditor-0.2.12}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RepoAuditor
3
- Version: 0.2.10
3
+ Version: 0.2.12
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
@@ -91,7 +91,7 @@ select = [
91
91
  "DTZ",
92
92
  "T10",
93
93
  "DJ",
94
- # "EM", # 9
94
+ "EM",
95
95
  "EXE",
96
96
  "FIX",
97
97
  "FA",
@@ -128,7 +128,7 @@ select = [
128
128
  "DOC",
129
129
  # "D", # 249
130
130
  "F",
131
- # "PGH", # 5
131
+ "PGH",
132
132
  # "PL", # 11
133
133
  # "UP", # 100
134
134
  "FURB",
@@ -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,12 +172,13 @@ 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
175
180
  else:
176
- dynamic_args.setdefault(parts[0], {}).setdefault(None, {}).setdefault( # type: ignore
181
+ dynamic_args.setdefault(parts[0], {}).setdefault(None, {}).setdefault( # type: ignore[call-overload]
177
182
  parts[1],
178
183
  {},
179
184
  )[argument_separator.join(parts[2:])] = value
@@ -182,7 +187,7 @@ class CommandLineProcessor:
182
187
 
183
188
  for module_name, module in module_map.items():
184
189
  module_args = dynamic_args.get(module_name, {})
185
- requirement_args = module_args.pop(None, None) # type: ignore
190
+ requirement_args = module_args.pop(None, None) # type: ignore[call-overload]
186
191
 
187
192
  module_infos.append(ModuleInfo(module, module_args, requirement_args))
188
193
 
@@ -65,7 +65,7 @@ def _Impl(
65
65
  sequential: list[tuple[int, ItemType]] = []
66
66
 
67
67
  for index, item in enumerate(items):
68
- execution_style = item.style # type: ignore
68
+ execution_style = item.style # type: ignore[attr-defined]
69
69
 
70
70
  if execution_style == ExecutionStyle.Parallel:
71
71
  parallel.append((index, item))
@@ -100,7 +100,7 @@ def _Impl(
100
100
  dm,
101
101
  "Processing",
102
102
  [
103
- ExecuteTasks.TaskData(item.name, (results_index, item)) # type: ignore
103
+ ExecuteTasks.TaskData(item.name, (results_index, item)) # type: ignore[attr-defined]
104
104
  for results_index, item in parallel
105
105
  ],
106
106
  lambda context, status: Execute(*context),
@@ -115,7 +115,7 @@ def _Impl(
115
115
  for sequential_index, (results_index, item) in enumerate(sequential):
116
116
  with dm.Nested(
117
117
  "Processing '{}' ({} of {})...".format(
118
- item.name, # type: ignore
118
+ item.name, # type: ignore[attr-defined]
119
119
  sequential_index + 1 + len(parallel),
120
120
  len(items),
121
121
  ),
@@ -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
@@ -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
 
@@ -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.10"
6
+ __version__ = "0.2.12"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes