RepoAuditor 0.2.29__tar.gz → 0.2.30__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.
- {repoauditor-0.2.29 → repoauditor-0.2.30}/PKG-INFO +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/pyproject.toml +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/CommandLineProcessor.py +4 -2
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/EntryPoint.py +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +2 -2
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +2 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardEnableRequirementImpl.py +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubBase/Module.py +2 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Impl/EnableRulesetRequirementImpl.py +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/__init__.py +1 -1
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.copier-answers.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/CODEOWNERS +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/actions/release_impl/action.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/pull_request_template.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/release_sources.yaml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/workflows/CICD.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/workflows/CICD_impl.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/workflows/EndToEnd.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.github/workflows/codeql.yml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.gitignore +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.pre-commit-config.yaml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/.python-version +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/CODE_OF_CONDUCT.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/CONTRIBUTING.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/DEVELOPMENT.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/GOVERNANCE.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/LICENSE +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/MAINTAINERS.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/README.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/SECURITY.md +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/minisign_key.pub +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/AutoGitSemVer.yaml +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Display.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/ExecuteModules.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Impl/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Module.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugin.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowForcePushes.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/Protected.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/Module.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/AutoMerge.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DefaultBranch.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DeleteHeadBranches.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DependabotSecurityUpdates.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Description.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardValueRequirementImpl.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/License.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommit.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommitMessage.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Private.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/RebaseMergeCommit.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanning.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanningPushProtection.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashCommitMerge.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashMergeCommitMessage.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SuggestUpdatingPullRequestBranches.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportDiscussions.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportIssues.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportProjects.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportWikis.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/TemplateRepository.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/WebCommitSignoff.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubBase/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/CustomizationQuery.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Impl/ExistsRequirementImpl.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Impl/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Module.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Requirements/CodeOwners.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Requirements/Contributing.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Requirements/IssueTemplates.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Requirements/PullRequestTemplates.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Requirements/SecurityPolicy.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Requirements/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomizationPlugin.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Impl/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Module.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Requirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Requirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Requirements/RequireStatusChecks.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Requirements/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/RulesetQuery.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesetsPlugin.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/__init__.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Query.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Requirement.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/py.typed +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/CommandLineProcessor_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/EntryPoint_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/ExecuteModules_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Module_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugin_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/GitHubCustomization_EndToEndTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/GitHubCustomization_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/GitHubModule_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/GitHubRuleset_EndToEndTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/GitHubRuleset_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/GitHub_EndToEndTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/__snapshots__/GitHubCustomization_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/__snapshots__/GitHubRuleset_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/utilities.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Query_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Requirement_UnitTest.py +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
- {repoauditor-0.2.29 → repoauditor-0.2.30}/uv.lock +0 -0
|
@@ -152,15 +152,17 @@ class CommandLineProcessor:
|
|
|
152
152
|
# Now we process the definitions to get the dynamic arguments
|
|
153
153
|
dynamic_args: dict[str, dict[str, Any]] = {}
|
|
154
154
|
|
|
155
|
+
num_acceptable_dynamic_args_parts = 2
|
|
156
|
+
|
|
155
157
|
for key, value in get_dynamic_args_func(dynamic_arg_definitions).items():
|
|
156
158
|
parts = key.split(argument_separator)
|
|
157
|
-
assert len(parts) >=
|
|
159
|
+
assert len(parts) >= num_acceptable_dynamic_args_parts
|
|
158
160
|
|
|
159
161
|
if parts[0] not in module_map:
|
|
160
162
|
msg = f"'{parts[0]}' is not a recognized module name."
|
|
161
163
|
raise ValueError(msg)
|
|
162
164
|
|
|
163
|
-
if len(parts) ==
|
|
165
|
+
if len(parts) == num_acceptable_dynamic_args_parts:
|
|
164
166
|
dynamic_args.setdefault(parts[0], {})[parts[1]] = value
|
|
165
167
|
else:
|
|
166
168
|
dynamic_args.setdefault(parts[0], {}).setdefault(None, {}).setdefault( # type: ignore[call-overload]
|
|
@@ -182,7 +182,7 @@ def _VersionCallback(value: bool) -> None: # noqa: FBT001
|
|
|
182
182
|
epilog=_HelpEpilog(),
|
|
183
183
|
no_args_is_help=False,
|
|
184
184
|
)
|
|
185
|
-
def EntryPoint(
|
|
185
|
+
def EntryPoint( # noqa: PLR0913
|
|
186
186
|
ctx: typer.Context,
|
|
187
187
|
version: Annotated[ # noqa: ARG001, FBT002
|
|
188
188
|
bool,
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py
RENAMED
|
@@ -37,9 +37,9 @@ def ParallelSequentialProcessor(
|
|
|
37
37
|
) -> list[OutputType]:
|
|
38
38
|
"""Process a list of items in parallel and/or sequentially."""
|
|
39
39
|
if dm is None:
|
|
40
|
-
with DoneManager.Create(StreamDecorator(None), "", line_prefix="") as
|
|
40
|
+
with DoneManager.Create(StreamDecorator(None), "", line_prefix="") as _dm:
|
|
41
41
|
return _Impl(
|
|
42
|
-
|
|
42
|
+
_dm,
|
|
43
43
|
items,
|
|
44
44
|
calculate_result_func,
|
|
45
45
|
max_num_threads,
|
|
@@ -61,6 +61,7 @@ RESPONSE:
|
|
|
61
61
|
|
|
62
62
|
from typing import Any, Optional
|
|
63
63
|
|
|
64
|
+
import requests
|
|
64
65
|
from dbrownell_Common.Types import override # type: ignore[import-untyped]
|
|
65
66
|
|
|
66
67
|
from RepoAuditor.Query import ExecutionStyle, Query
|
|
@@ -149,7 +150,7 @@ class ClassicBranchProtectionQuery(Query):
|
|
|
149
150
|
# and then see if rule sets are in use if the classic information is not found.
|
|
150
151
|
response = module_data["session"].get(f"/branches/{module_data['branch']}/protection")
|
|
151
152
|
|
|
152
|
-
if response.status_code ==
|
|
153
|
+
if response.status_code == requests.codes.NOT_FOUND:
|
|
153
154
|
# Does this branch use rule sets?
|
|
154
155
|
ruleset_response = module_data["session"].get(f"rules/branches/{module_data['branch']}")
|
|
155
156
|
|
|
@@ -24,7 +24,7 @@ class EnableRequirementImpl(Requirement):
|
|
|
24
24
|
"""Object that implements settings that can be enabled/disabled."""
|
|
25
25
|
|
|
26
26
|
# ----------------------------------------------------------------------
|
|
27
|
-
def __init__(
|
|
27
|
+
def __init__( # noqa: PLR0913
|
|
28
28
|
self,
|
|
29
29
|
name: str,
|
|
30
30
|
default_value: bool, # noqa: FBT001
|
|
@@ -19,7 +19,7 @@ class StandardEnableRequirementImpl(EnableRequirementImpl):
|
|
|
19
19
|
"""Implementation of requirement for standard enables of GitHub settings."""
|
|
20
20
|
|
|
21
21
|
# ----------------------------------------------------------------------
|
|
22
|
-
def __init__(
|
|
22
|
+
def __init__( # noqa: PLR0913
|
|
23
23
|
self,
|
|
24
24
|
name: str,
|
|
25
25
|
default_value: bool, # noqa: FBT001
|
|
@@ -104,7 +104,8 @@ class _GitHubSession(requests.Session):
|
|
|
104
104
|
url_parts = urlparse(github_url)
|
|
105
105
|
path_parts = url_parts.path.split("/")
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
# The URL should be of the form <github_server>/<username>/<repo>
|
|
108
|
+
if len(path_parts) != 3: # noqa: PLR2004
|
|
108
109
|
msg = f"'{github_url}' is not a valid GitHub repository URL."
|
|
109
110
|
raise ValueError(msg)
|
|
110
111
|
|
|
@@ -20,7 +20,7 @@ class EnableRulesetRequirementImpl(EnableRequirementImpl):
|
|
|
20
20
|
"""Object that implements ruleset settings that can be enabled/disabled."""
|
|
21
21
|
|
|
22
22
|
# ----------------------------------------------------------------------
|
|
23
|
-
def __init__(
|
|
23
|
+
def __init__( # noqa: PLR0913
|
|
24
24
|
self,
|
|
25
25
|
name: str,
|
|
26
26
|
default_value: bool, # noqa: FBT001
|
|
@@ -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.
|
|
6
|
+
__version__ = "0.2.30"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/Module.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomization/__init__.py
RENAMED
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubCustomizationPlugin.py
RENAMED
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/Impl/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/RulesetQuery.py
RENAMED
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/src/RepoAuditor/Plugins/GitHubRulesets/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.29 → repoauditor-0.2.30}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|