RepoAuditor 0.2.54__tar.gz → 0.2.56__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.54 → repoauditor-0.2.56}/PKG-INFO +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +21 -21
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/AutoMerge.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/DefaultBranch.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/DeleteHeadBranches.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/DependabotSecurityUpdates.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/License.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/MergeCommit.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/MergeCommitMessage.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/RebaseMergeCommit.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SecretScanning.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SecretScanningPushProtection.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SquashCommitMerge.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SquashMergeCommitMessage.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SuggestUpdatingPullRequestBranches.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SupportDiscussions.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SupportIssues.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SupportProjects.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/SupportWikis.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/TemplateRepository.py +1 -1
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/WebCommitSignoff.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/CommunityStandardsQuery.py +21 -2
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/__init__.py +1 -1
- repoauditor-0.2.56/tests/Plugins/GitHubCommunityStandards/CommunityStandardsQuery_UnitTest.py +125 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/DefaultBranchQueryRequirements/Protected_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/DependabotSecurityUpdates_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/Description_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/License_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/MergeCommitMessage_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/Private_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/SecretScanningPushProtection_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/SecretScanning_UnitTest.py +1 -1
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQueryRequirements/SquashMergeCommitMessage_UnitTest.py +1 -1
- repoauditor-0.2.54/tests/Plugins/GitHubCommunityStandards/CommunityStandardsQuery_UnitTest.py +0 -63
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.copier-answers.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/CODEOWNERS +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/actions/release_impl/action.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/pull_request_template.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/release_sources.yaml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/workflows/CICD.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/workflows/CICD_impl.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/workflows/EndToEnd.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.github/workflows/codeql.yml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.gitignore +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.pre-commit-config.yaml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/.python-version +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/CODE_OF_CONDUCT.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/CONTRIBUTING.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/DEVELOPMENT.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/GOVERNANCE.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/LICENSE +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/MAINTAINERS.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/README.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/SECURITY.md +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/default_config.yaml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/minisign_key.pub +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/pyproject.toml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/AutoGitSemVer.yaml +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/CommandLineProcessor.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Display.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/EntryPoint.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/ExecuteModules.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Impl/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Module.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugin.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowMainlineForcePushes.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/DefaultBranchRequirements}/Protected.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/DefaultBranchRequirements}/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRulesetRequirementImpl.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/Module.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/RulesetQuery.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireStatusChecks.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/__init__.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/Description.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/Impl/StandardEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/Impl/StandardValueRequirementImpl.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/Impl/__init__.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/Private.py +0 -0
- {repoauditor-0.2.54/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements → repoauditor-0.2.56/src/RepoAuditor/Plugins/GitHub/StandardRequirements}/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubBase/Module.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubBase/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Impl/ExistsRequirementImpl.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Impl/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Module.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/CodeOfConduct.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/CodeOwners.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/Contributing.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/IssueTemplates.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/LicenseFile.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/PullRequestTemplates.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/ReadMe.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/SecurityPolicy.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Requirements/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandardsPlugin.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/__init__.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Query.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Requirement.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/py.typed +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/CommandLineProcessor_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/EntryPoint_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/ExecuteModules_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Module_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugin_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubCommunityStandards/ExistsRequirementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubCommunityStandards/GitHubCommunityStandards_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubCommunityStandards_EndToEndTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubEnterprise_EndToEndTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionQuery_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/EnsureStatusChecks_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireApprovals_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireCodeOwnerReview_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireUpToDateBranches_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ClassicValueRequirementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/DefaultBranchQuery_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/EnableRulesetRequirementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/GitHubModule_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/GitHubSession_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/RulesetRequirements_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/RulsesetQuery_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQuery_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ValueRequrementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/fixtures.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHub_EndToEndTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/__snapshots__/GitHubCommunityStandards_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/__snapshots__/GitHubEnterprise_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/conftest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/utilities.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Query_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Requirement_UnitTest.py +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
- {repoauditor-0.2.54 → repoauditor-0.2.56}/uv.lock +0 -0
{repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py
RENAMED
|
@@ -10,7 +10,7 @@ from typing import Any, Optional
|
|
|
10
10
|
|
|
11
11
|
from dbrownell_Common.Types import override # type: ignore[import-untyped]
|
|
12
12
|
|
|
13
|
-
from RepoAuditor.Plugins.GitHub.
|
|
13
|
+
from RepoAuditor.Plugins.GitHub.DefaultBranchRequirements.Protected import Protected
|
|
14
14
|
from RepoAuditor.Query import ExecutionStyle, Query
|
|
15
15
|
|
|
16
16
|
|
|
@@ -170,35 +170,35 @@ from typing import Any, Optional
|
|
|
170
170
|
|
|
171
171
|
from dbrownell_Common.Types import override # type: ignore[import-untyped]
|
|
172
172
|
|
|
173
|
-
from RepoAuditor.Plugins.GitHub.
|
|
174
|
-
from RepoAuditor.Plugins.GitHub.
|
|
175
|
-
from RepoAuditor.Plugins.GitHub.
|
|
176
|
-
from RepoAuditor.Plugins.GitHub.
|
|
173
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.AutoMerge import AutoMerge
|
|
174
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.DefaultBranch import DefaultBranch
|
|
175
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.DeleteHeadBranches import DeleteHeadBranches
|
|
176
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.DependabotSecurityUpdates import (
|
|
177
177
|
DependabotSecurityUpdates,
|
|
178
178
|
)
|
|
179
|
-
from RepoAuditor.Plugins.GitHub.
|
|
180
|
-
from RepoAuditor.Plugins.GitHub.
|
|
181
|
-
from RepoAuditor.Plugins.GitHub.
|
|
182
|
-
from RepoAuditor.Plugins.GitHub.
|
|
183
|
-
from RepoAuditor.Plugins.GitHub.
|
|
184
|
-
from RepoAuditor.Plugins.GitHub.
|
|
185
|
-
from RepoAuditor.Plugins.GitHub.
|
|
186
|
-
from RepoAuditor.Plugins.GitHub.
|
|
179
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Description import Description
|
|
180
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.License import License
|
|
181
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.MergeCommit import MergeCommit
|
|
182
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.MergeCommitMessage import MergeCommitMessage
|
|
183
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Private import Private
|
|
184
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.RebaseMergeCommit import RebaseMergeCommit
|
|
185
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SecretScanning import SecretScanning
|
|
186
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SecretScanningPushProtection import (
|
|
187
187
|
SecretScanningPushProtection,
|
|
188
188
|
)
|
|
189
|
-
from RepoAuditor.Plugins.GitHub.
|
|
190
|
-
from RepoAuditor.Plugins.GitHub.
|
|
189
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SquashCommitMerge import SquashCommitMerge
|
|
190
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SquashMergeCommitMessage import (
|
|
191
191
|
SquashMergeCommitMessage,
|
|
192
192
|
)
|
|
193
|
-
from RepoAuditor.Plugins.GitHub.
|
|
193
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SuggestUpdatingPullRequestBranches import (
|
|
194
194
|
SuggestUpdatingPullRequestBranches,
|
|
195
195
|
)
|
|
196
|
-
from RepoAuditor.Plugins.GitHub.
|
|
197
|
-
from RepoAuditor.Plugins.GitHub.
|
|
198
|
-
from RepoAuditor.Plugins.GitHub.
|
|
199
|
-
from RepoAuditor.Plugins.GitHub.
|
|
200
|
-
from RepoAuditor.Plugins.GitHub.
|
|
201
|
-
from RepoAuditor.Plugins.GitHub.
|
|
196
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SupportDiscussions import SupportDiscussions
|
|
197
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SupportIssues import SupportIssues
|
|
198
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SupportProjects import SupportProjects
|
|
199
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SupportWikis import SupportWikis
|
|
200
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.TemplateRepository import TemplateRepository
|
|
201
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.WebCommitSignoff import WebCommitSignoff
|
|
202
202
|
from RepoAuditor.Query import ExecutionStyle, Query
|
|
203
203
|
|
|
204
204
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardValueRequirementImpl import (
|
|
12
12
|
StandardValueRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import textwrap
|
|
10
10
|
from typing import Any, Optional
|
|
11
11
|
|
|
12
|
-
from RepoAuditor.Plugins.GitHub.
|
|
12
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
13
13
|
StandardEnableRequirementImpl,
|
|
14
14
|
)
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import textwrap
|
|
10
10
|
from typing import Any, Optional
|
|
11
11
|
|
|
12
|
-
from RepoAuditor.Plugins.GitHub.
|
|
12
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardValueRequirementImpl import (
|
|
13
13
|
StandardValueRequirementImpl,
|
|
14
14
|
)
|
|
15
15
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import textwrap
|
|
10
10
|
from typing import Any
|
|
11
11
|
|
|
12
|
-
from RepoAuditor.Plugins.GitHub.
|
|
12
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardValueRequirementImpl import (
|
|
13
13
|
DoesNotApplyResult,
|
|
14
14
|
StandardValueRequirementImpl,
|
|
15
15
|
)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import textwrap
|
|
10
10
|
from typing import Any, Optional
|
|
11
11
|
|
|
12
|
-
from RepoAuditor.Plugins.GitHub.
|
|
12
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
13
13
|
StandardEnableRequirementImpl,
|
|
14
14
|
)
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import textwrap
|
|
10
10
|
from typing import Any, Optional
|
|
11
11
|
|
|
12
|
-
from RepoAuditor.Plugins.GitHub.
|
|
12
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
13
13
|
StandardEnableRequirementImpl,
|
|
14
14
|
)
|
|
15
15
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import textwrap
|
|
10
10
|
from typing import Any
|
|
11
11
|
|
|
12
|
-
from RepoAuditor.Plugins.GitHub.
|
|
12
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardValueRequirementImpl import (
|
|
13
13
|
DoesNotApplyResult,
|
|
14
14
|
StandardValueRequirementImpl,
|
|
15
15
|
)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import textwrap
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.Impl.StandardEnableRequirementImpl import (
|
|
12
12
|
StandardEnableRequirementImpl,
|
|
13
13
|
)
|
|
14
14
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
from tempfile import TemporaryDirectory
|
|
10
10
|
from typing import Any, Optional
|
|
11
|
+
from urllib.parse import urlparse
|
|
11
12
|
|
|
12
13
|
from dbrownell_Common.Types import override # type: ignore[import-untyped]
|
|
13
14
|
|
|
@@ -50,15 +51,33 @@ class CommunityStandardsQuery(Query):
|
|
|
50
51
|
"""Get the repo data."""
|
|
51
52
|
|
|
52
53
|
# Clone the GitHub repository to a temp directory
|
|
53
|
-
github_url = module_data["url"]
|
|
54
54
|
branch = module_data.get("branch", "main")
|
|
55
55
|
temp_repo_dir = TemporaryDirectory()
|
|
56
|
+
github_url = module_data["url"]
|
|
57
|
+
|
|
58
|
+
# Add PAT to GitHub URL, if present
|
|
59
|
+
github_pat = module_data.get("pat")
|
|
60
|
+
if github_pat:
|
|
61
|
+
url = urlparse(github_url)
|
|
62
|
+
github_url = f"https://{github_pat}@{url.netloc}{url.path}"
|
|
56
63
|
|
|
57
64
|
# Import git.Repo here so that it is only imported
|
|
58
65
|
# if the GitHubCommunityStandards plugin is requested.
|
|
59
66
|
from git import Repo
|
|
60
67
|
|
|
61
|
-
|
|
68
|
+
try:
|
|
69
|
+
Repo.clone_from(github_url, temp_repo_dir.name, branch=branch)
|
|
70
|
+
except Exception as e:
|
|
71
|
+
error_msg = f"""
|
|
72
|
+
An error occurred while attempting to clone the target repository.
|
|
73
|
+
If you are auditing a private repository, {
|
|
74
|
+
"please ensure your PAT has access to the repository."
|
|
75
|
+
if github_pat
|
|
76
|
+
else "please provide a PAT with access to the repository."
|
|
77
|
+
}
|
|
78
|
+
Error: {e}
|
|
79
|
+
"""
|
|
80
|
+
raise RuntimeError(error_msg) from e
|
|
62
81
|
|
|
63
82
|
# Record the path and the temp directory for later cleanup
|
|
64
83
|
module_data["repo_dir"] = temp_repo_dir
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# -------------------------------------------------------------------------------
|
|
2
|
+
# |
|
|
3
|
+
# | Copyright (c) 2024 Scientific Software Engineering Center at Georgia Tech
|
|
4
|
+
# | Distributed under the MIT License.
|
|
5
|
+
# |
|
|
6
|
+
# -------------------------------------------------------------------------------
|
|
7
|
+
"""Unit tests for CommunityStandardsQuery.py"""
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
from git import Repo
|
|
11
|
+
|
|
12
|
+
from RepoAuditor.Plugins.GitHubCommunityStandards.CommunityStandardsQuery import (
|
|
13
|
+
CommunityStandardsQuery,
|
|
14
|
+
TemporaryDirectory,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class MockTemporaryDirectory:
|
|
19
|
+
"""A mock class to replace tempfile.TemporaryDirectory."""
|
|
20
|
+
|
|
21
|
+
def __init__(self):
|
|
22
|
+
self.name = "test_temp_directory"
|
|
23
|
+
|
|
24
|
+
def cleanup(self):
|
|
25
|
+
"""Mocked cleanup method"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@pytest.fixture(autouse=True)
|
|
29
|
+
def patch_temp_directory(monkeypatch):
|
|
30
|
+
monkeypatch.delattr("tempfile.TemporaryDirectory")
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class TestCommunityStandardsQuery:
|
|
34
|
+
def test_GetData(self, module_data, monkeypatch):
|
|
35
|
+
"""Test the GetData method."""
|
|
36
|
+
monkeypatch.setattr(
|
|
37
|
+
TemporaryDirectory,
|
|
38
|
+
"__init__",
|
|
39
|
+
MockTemporaryDirectory.__init__,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
def mock_clone_from(github_url, repo_dirname, branch="main"):
|
|
43
|
+
"""A mocked clone_from method for the git.Repo class."""
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
monkeypatch.setattr(
|
|
47
|
+
Repo,
|
|
48
|
+
"clone_from",
|
|
49
|
+
mock_clone_from,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
query = CommunityStandardsQuery()
|
|
53
|
+
query_data = query.GetData(module_data)
|
|
54
|
+
|
|
55
|
+
assert query_data["repo_dir"].name == "test_temp_directory"
|
|
56
|
+
|
|
57
|
+
def test_GetData_adds_pat(self, module_data, monkeypatch):
|
|
58
|
+
"""Test the GetData method adds PAT to URL"""
|
|
59
|
+
github_pat = "pat-123"
|
|
60
|
+
github_url = "https://github.com/owner/repo"
|
|
61
|
+
expected_url = "https://pat-123@github.com/owner/repo"
|
|
62
|
+
module_data["url"] = github_url
|
|
63
|
+
module_data["pat"] = github_pat
|
|
64
|
+
|
|
65
|
+
monkeypatch.setattr(
|
|
66
|
+
TemporaryDirectory,
|
|
67
|
+
"__init__",
|
|
68
|
+
MockTemporaryDirectory.__init__,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
def mock_clone_from(github_url, repo_dirname, branch="main"):
|
|
72
|
+
assert github_url == expected_url
|
|
73
|
+
|
|
74
|
+
monkeypatch.setattr(Repo, "clone_from", mock_clone_from)
|
|
75
|
+
|
|
76
|
+
query = CommunityStandardsQuery()
|
|
77
|
+
_ = query.GetData(module_data)
|
|
78
|
+
|
|
79
|
+
def test_GetData_does_not_add_pat(self, module_data, monkeypatch):
|
|
80
|
+
"""Test the GetData method preserves the URL when no PAT is provided"""
|
|
81
|
+
github_url = "https://github.com/owner/repo"
|
|
82
|
+
expected_url = "https://github.com/owner/repo"
|
|
83
|
+
module_data["url"] = github_url
|
|
84
|
+
|
|
85
|
+
monkeypatch.setattr(
|
|
86
|
+
TemporaryDirectory,
|
|
87
|
+
"__init__",
|
|
88
|
+
MockTemporaryDirectory.__init__,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
def mock_clone_from(github_url, repo_dirname, branch="main"):
|
|
92
|
+
assert github_url == expected_url
|
|
93
|
+
|
|
94
|
+
monkeypatch.setattr(Repo, "clone_from", mock_clone_from)
|
|
95
|
+
|
|
96
|
+
query = CommunityStandardsQuery()
|
|
97
|
+
_ = query.GetData(module_data)
|
|
98
|
+
|
|
99
|
+
def test_GetData_handles_gitpython_errors(self, module_data, monkeypatch):
|
|
100
|
+
"""Test the GetData method handles errors raised by the gitpyhon module"""
|
|
101
|
+
gitpython_error_msg = "error cloning repository"
|
|
102
|
+
|
|
103
|
+
monkeypatch.setattr(
|
|
104
|
+
TemporaryDirectory,
|
|
105
|
+
"__init__",
|
|
106
|
+
MockTemporaryDirectory.__init__,
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
def mock_clone_from(github_url, repo_dirname, branch="main"):
|
|
110
|
+
raise Exception(gitpython_error_msg)
|
|
111
|
+
|
|
112
|
+
monkeypatch.setattr(Repo, "clone_from", mock_clone_from)
|
|
113
|
+
|
|
114
|
+
query = CommunityStandardsQuery()
|
|
115
|
+
with pytest.raises(RuntimeError) as e_info:
|
|
116
|
+
_ = query.GetData(module_data)
|
|
117
|
+
assert gitpython_error_msg in str(e_info)
|
|
118
|
+
|
|
119
|
+
def test_Cleanup(self, module_data):
|
|
120
|
+
"""Test the Cleanup method."""
|
|
121
|
+
query = CommunityStandardsQuery()
|
|
122
|
+
module_data["repo_dir"] = MockTemporaryDirectory()
|
|
123
|
+
result = query.Cleanup(module_data)
|
|
124
|
+
|
|
125
|
+
assert result is None
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.DependabotSecurityUpdates import (
|
|
12
12
|
DependabotSecurityUpdates,
|
|
13
13
|
)
|
|
14
14
|
from RepoAuditor.Requirement import EvaluateResult
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.MergeCommitMessage import MergeCommitMessage
|
|
12
12
|
from RepoAuditor.Requirement import EvaluateResult
|
|
13
13
|
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SecretScanningPushProtection import (
|
|
12
12
|
SecretScanningPushProtection,
|
|
13
13
|
)
|
|
14
14
|
from RepoAuditor.Requirement import EvaluateResult
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SecretScanning import SecretScanning
|
|
12
12
|
from RepoAuditor.Requirement import EvaluateResult
|
|
13
13
|
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
10
10
|
|
|
11
|
-
from RepoAuditor.Plugins.GitHub.
|
|
11
|
+
from RepoAuditor.Plugins.GitHub.StandardRequirements.SquashMergeCommitMessage import (
|
|
12
12
|
SquashMergeCommitMessage,
|
|
13
13
|
)
|
|
14
14
|
from RepoAuditor.Requirement import EvaluateResult
|
repoauditor-0.2.54/tests/Plugins/GitHubCommunityStandards/CommunityStandardsQuery_UnitTest.py
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# -------------------------------------------------------------------------------
|
|
2
|
-
# |
|
|
3
|
-
# | Copyright (c) 2024 Scientific Software Engineering Center at Georgia Tech
|
|
4
|
-
# | Distributed under the MIT License.
|
|
5
|
-
# |
|
|
6
|
-
# -------------------------------------------------------------------------------
|
|
7
|
-
"""Unit tests for CommunityStandardsQuery.py"""
|
|
8
|
-
|
|
9
|
-
import pytest
|
|
10
|
-
from git import Repo
|
|
11
|
-
|
|
12
|
-
from RepoAuditor.Plugins.GitHubCommunityStandards.CommunityStandardsQuery import (
|
|
13
|
-
CommunityStandardsQuery,
|
|
14
|
-
TemporaryDirectory,
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def mock_clone_from(github_url, repo_dirname, branch="main"):
|
|
19
|
-
"""A mocked clone_from method for the git.Repo class."""
|
|
20
|
-
pass
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class MockTemporaryDirectory:
|
|
24
|
-
"""A mock class to replace tempfile.TemporaryDirectory."""
|
|
25
|
-
|
|
26
|
-
def __init__(self):
|
|
27
|
-
self.name = "test_temp_directory"
|
|
28
|
-
|
|
29
|
-
def cleanup(self):
|
|
30
|
-
"""Mocked cleanup method"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
@pytest.fixture(autouse=True)
|
|
34
|
-
def patch_temp_directory(monkeypatch):
|
|
35
|
-
monkeypatch.delattr("tempfile.TemporaryDirectory")
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class TestCommunityStandardsQuery:
|
|
39
|
-
def test_GetData(self, module_data, monkeypatch):
|
|
40
|
-
"""Test the GetData method."""
|
|
41
|
-
monkeypatch.setattr(
|
|
42
|
-
TemporaryDirectory,
|
|
43
|
-
"__init__",
|
|
44
|
-
MockTemporaryDirectory.__init__,
|
|
45
|
-
)
|
|
46
|
-
monkeypatch.setattr(
|
|
47
|
-
Repo,
|
|
48
|
-
"clone_from",
|
|
49
|
-
mock_clone_from,
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
query = CommunityStandardsQuery()
|
|
53
|
-
query_data = query.GetData(module_data)
|
|
54
|
-
|
|
55
|
-
assert query_data["repo_dir"].name == "test_temp_directory"
|
|
56
|
-
|
|
57
|
-
def test_Cleanup(self, module_data):
|
|
58
|
-
"""Test the Cleanup method."""
|
|
59
|
-
query = CommunityStandardsQuery()
|
|
60
|
-
module_data["repo_dir"] = MockTemporaryDirectory()
|
|
61
|
-
result = query.Cleanup(module_data)
|
|
62
|
-
|
|
63
|
-
assert result is None
|
|
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.54 → repoauditor-0.2.56}/src/RepoAuditor/Impl/ParallelSequentialProcessor.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
|
|
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.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandards/Module.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
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/src/RepoAuditor/Plugins/GitHubCommunityStandardsPlugin.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
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubCommunityStandards_EndToEndTest.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
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/DefaultBranchQuery_UnitTest.py
RENAMED
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/GitHubModule_UnitTest.py
RENAMED
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/GitHubSession_UnitTest.py
RENAMED
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/RulesetRequirements_UnitTest.py
RENAMED
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/RulsesetQuery_UnitTest.py
RENAMED
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/StandardQuery_UnitTest.py
RENAMED
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/tests/Plugins/GitHubModule/ValueRequrementImpl_UnitTest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{repoauditor-0.2.54 → repoauditor-0.2.56}/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
|
|
File without changes
|