RepoAuditor 0.2.23__tar.gz → 0.2.24__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.23 → repoauditor-0.2.24}/.github/workflows/CICD.yml +0 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/workflows/CICD_impl.yml +1 -24
- repoauditor-0.2.24/.github/workflows/EndToEnd.yml +48 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/PKG-INFO +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/pyproject.toml +2 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Display.py +2 -2
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/EntryPoint.py +9 -9
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/Protected.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Description.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardEnableRequirementImpl.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Private.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/__init__.py +1 -1
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Plugins/GitHub_EndToEndTest.py +3 -4
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.copier-answers.yml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/CODEOWNERS +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/actions/release_impl/action.yml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/pull_request_template.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/release_sources.yaml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.github/workflows/codeql.yml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.gitignore +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.pre-commit-config.yaml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/.python-version +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/CODE_OF_CONDUCT.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/CONTRIBUTING.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/DEVELOPMENT.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/GOVERNANCE.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/LICENSE +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/MAINTAINERS.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/README.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/SECURITY.md +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/minisign_key.pub +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/AutoGitSemVer.yaml +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/CommandLineProcessor.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/ExecuteModules.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Impl/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Module.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugin.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowForcePushes.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQueryRequirements/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/Module.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/AutoMerge.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DefaultBranch.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DeleteHeadBranches.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/DependabotSecurityUpdates.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/StandardValueRequirementImpl.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/License.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommit.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/MergeCommitMessage.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/RebaseMergeCommit.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanning.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SecretScanningPushProtection.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashCommitMerge.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SquashMergeCommitMessage.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SuggestUpdatingPullRequestBranches.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportDiscussions.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportIssues.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportProjects.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/SupportWikis.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/TemplateRepository.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/WebCommitSignoff.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/StandardQueryRequirements/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubBase/Module.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubBase/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomization/CustomizationQuery.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomization/Module.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomization/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomizationPlugin.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/__init__.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Query.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Requirement.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/py.typed +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/CommandLineProcessor_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/EntryPoint_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/ExecuteModules_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Module_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Plugin_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Plugins/GitHubCustomization_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Plugins/GitHubModule_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Plugins/utilities.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Query_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/Requirement_UnitTest.py +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
- {repoauditor-0.2.23 → repoauditor-0.2.24}/uv.lock +0 -0
|
@@ -41,10 +41,6 @@ on:
|
|
|
41
41
|
required: false
|
|
42
42
|
description: "Token used to access the Gist used to store coverage badge information. Code coverage information will not be persisted if this value is missing."
|
|
43
43
|
|
|
44
|
-
TESTING_GITHUB_PAT:
|
|
45
|
-
required: true
|
|
46
|
-
description: "GitHub PAT used by tests to access the repository. This value is required."
|
|
47
|
-
|
|
48
44
|
jobs:
|
|
49
45
|
# ----------------------------------------------------------------------
|
|
50
46
|
validate:
|
|
@@ -70,30 +66,11 @@ jobs:
|
|
|
70
66
|
python-version: ${{ matrix.python_version }}
|
|
71
67
|
enable-cache: true
|
|
72
68
|
|
|
73
|
-
# Ensure that the github PAT is available for the tests
|
|
74
|
-
- name: Create github_pat.txt
|
|
75
|
-
run: |
|
|
76
|
-
echo ${{ secrets.TESTING_GITHUB_PAT }} > tests/Plugins/github_pat.txt
|
|
77
|
-
|
|
78
|
-
- name: Environment Variables (!Windows)
|
|
79
|
-
shell: bash
|
|
80
|
-
if: ${{ ! startsWith(matrix.os, 'windows') }}
|
|
81
|
-
run: |
|
|
82
|
-
echo "GITHUB_CI_OPERATING_SYSTEM=${{ matrix.os }}" >> $GITHUB_ENV
|
|
83
|
-
echo "GITHUB_CI_PYTHON_VERSION=${{ matrix.python_version }}" >> $GITHUB_ENV
|
|
84
|
-
|
|
85
|
-
- name: Environment Variables (Windows)
|
|
86
|
-
shell: cmd
|
|
87
|
-
if: ${{ startsWith(matrix.os, 'windows') }}
|
|
88
|
-
run: |
|
|
89
|
-
echo GITHUB_CI_OPERATING_SYSTEM=${{ matrix.os }} >> %GITHUB_ENV%
|
|
90
|
-
echo GITHUB_CI_PYTHON_VERSION=${{ matrix.python_version }} >> %GITHUB_ENV%
|
|
91
|
-
|
|
92
69
|
- name: Run pre-commit scripts
|
|
93
70
|
run: uv run pre-commit run --verbose
|
|
94
71
|
|
|
95
72
|
- name: Validate Tests
|
|
96
|
-
run: uv run pytest
|
|
73
|
+
run: uv run pytest -k 'not EndToEndTest' --cov-fail-under=80.0
|
|
97
74
|
env:
|
|
98
75
|
COVERAGE_FILE: .coverage.${{ matrix.os }}.${{ matrix.python_version }}
|
|
99
76
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: "End To End Tests"
|
|
2
|
+
run-name: EndToEnd ${{ github.run_number }} [${{ github.actor }}] on ${{ github.ref_name }}
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: '0 * * * *' # Once every hour
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
validate:
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
|
|
14
|
+
matrix:
|
|
15
|
+
# Since the system under test here is the GitHub API, it is sufficient to test using only a single OS.
|
|
16
|
+
os: ["ubuntu-latest"]
|
|
17
|
+
# Similar to OS, we only test the lowest and highest supported versions.
|
|
18
|
+
python_version: ["3.10", "3.13"]
|
|
19
|
+
|
|
20
|
+
name: Validate
|
|
21
|
+
runs-on: ${{ matrix.os }}
|
|
22
|
+
|
|
23
|
+
permissions:
|
|
24
|
+
contents: read
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
|
|
29
|
+
- name: Install uv and python
|
|
30
|
+
uses: astral-sh/setup-uv@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version: ${{ matrix.python_version }}
|
|
33
|
+
enable-cache: true
|
|
34
|
+
|
|
35
|
+
# Ensure that the github PAT is available for the tests
|
|
36
|
+
# GitHub PAT used by tests to access the repository.
|
|
37
|
+
- name: Create github_pat.txt
|
|
38
|
+
run: |
|
|
39
|
+
echo ${{ secrets.TESTING_GITHUB_PAT }} > tests/Plugins/github_pat.txt
|
|
40
|
+
|
|
41
|
+
- name: Environment Variables
|
|
42
|
+
shell: bash
|
|
43
|
+
run: |
|
|
44
|
+
echo "GITHUB_CI_OPERATING_SYSTEM=${{ matrix.os }}" >> $GITHUB_ENV
|
|
45
|
+
echo "GITHUB_CI_PYTHON_VERSION=${{ matrix.python_version }}" >> $GITHUB_ENV
|
|
46
|
+
|
|
47
|
+
- name: Validate Tests
|
|
48
|
+
run: uv run pytest -k EndToEndTest --no-cov
|
|
@@ -83,7 +83,7 @@ select = [
|
|
|
83
83
|
"ASYNC",
|
|
84
84
|
"S",
|
|
85
85
|
"BLE",
|
|
86
|
-
|
|
86
|
+
"FBT",
|
|
87
87
|
"B",
|
|
88
88
|
"A",
|
|
89
89
|
"COM",
|
|
@@ -148,6 +148,7 @@ ignore = [
|
|
|
148
148
|
"D107", # Missing docstring in `__init__` method
|
|
149
149
|
"D202", # No blank lines allowed after function docstring
|
|
150
150
|
"E501", # Line too long
|
|
151
|
+
"FBT003", # Boolean positional argument in function call
|
|
151
152
|
"I001", # Import block is un-sorted or un-formatted
|
|
152
153
|
"N802", # Function name `xxx` should be lowercase
|
|
153
154
|
"N999", # Invalid module name
|
|
@@ -21,8 +21,8 @@ from .Module import EvaluateResult, Module
|
|
|
21
21
|
def GetInternalPanelContent(
|
|
22
22
|
dm: DoneManager,
|
|
23
23
|
results: list[Module.EvaluateInfo],
|
|
24
|
-
display_resolution: bool,
|
|
25
|
-
display_rationale: bool,
|
|
24
|
+
display_resolution: bool, # noqa: FBT001
|
|
25
|
+
display_rationale: bool, # noqa: FBT001
|
|
26
26
|
num_success: int,
|
|
27
27
|
num_warning: int,
|
|
28
28
|
num_error: int,
|
|
@@ -168,7 +168,7 @@ def _HelpEpilog() -> str:
|
|
|
168
168
|
|
|
169
169
|
|
|
170
170
|
# ----------------------------------------------------------------------
|
|
171
|
-
def _VersionCallback(value: bool) -> None:
|
|
171
|
+
def _VersionCallback(value: bool) -> None: # noqa: FBT001
|
|
172
172
|
if value:
|
|
173
173
|
sys.stdout.write(f"RepoAuditor v{__version__}\n")
|
|
174
174
|
raise typer.Exit()
|
|
@@ -184,7 +184,7 @@ def _VersionCallback(value: bool) -> None:
|
|
|
184
184
|
)
|
|
185
185
|
def EntryPoint(
|
|
186
186
|
ctx: typer.Context,
|
|
187
|
-
version: Annotated[ # noqa: ARG001
|
|
187
|
+
version: Annotated[ # noqa: ARG001, FBT002
|
|
188
188
|
bool,
|
|
189
189
|
typer.Option(
|
|
190
190
|
"--version",
|
|
@@ -221,38 +221,38 @@ def EntryPoint(
|
|
|
221
221
|
help="Name of a module whose warnings should be ignored. This value can be provided multiple times.",
|
|
222
222
|
),
|
|
223
223
|
] = None,
|
|
224
|
-
all_warnings_as_error: Annotated[
|
|
224
|
+
all_warnings_as_error: Annotated[ # noqa: FBT002
|
|
225
225
|
bool, typer.Option("--all-warnings-as-error", help="Treat all warnings as errors.")
|
|
226
226
|
] = False,
|
|
227
|
-
ignore_all_warnings: Annotated[
|
|
227
|
+
ignore_all_warnings: Annotated[ # noqa: FBT002
|
|
228
228
|
bool, typer.Option("--ignore-all-warnings", help="Ignore all warnings.")
|
|
229
229
|
] = False,
|
|
230
|
-
single_threaded: Annotated[
|
|
230
|
+
single_threaded: Annotated[ # noqa: FBT002
|
|
231
231
|
bool,
|
|
232
232
|
typer.Option("--single-threaded", help="Do not use multiple threads when evaluating requirements."),
|
|
233
233
|
] = False,
|
|
234
|
-
no_resolution: Annotated[
|
|
234
|
+
no_resolution: Annotated[ # noqa: FBT002
|
|
235
235
|
bool,
|
|
236
236
|
typer.Option(
|
|
237
237
|
"--no-resolution",
|
|
238
238
|
help="Do not display resolution information for requirements that are not successful.",
|
|
239
239
|
),
|
|
240
240
|
] = False,
|
|
241
|
-
no_rationale: Annotated[
|
|
241
|
+
no_rationale: Annotated[ # noqa: FBT002
|
|
242
242
|
bool,
|
|
243
243
|
typer.Option(
|
|
244
244
|
"--no-rationale",
|
|
245
245
|
help="Do not display rationale information for requirements that are not successful.",
|
|
246
246
|
),
|
|
247
247
|
] = False,
|
|
248
|
-
verbose: Annotated[
|
|
248
|
+
verbose: Annotated[ # noqa: FBT002
|
|
249
249
|
bool,
|
|
250
250
|
typer.Option(
|
|
251
251
|
"--verbose",
|
|
252
252
|
help="Write verbose information to the terminal.",
|
|
253
253
|
),
|
|
254
254
|
] = False,
|
|
255
|
-
debug: Annotated[
|
|
255
|
+
debug: Annotated[ # noqa: FBT002
|
|
256
256
|
bool,
|
|
257
257
|
typer.Option(
|
|
258
258
|
"--debug",
|
|
@@ -27,7 +27,7 @@ class EnableRequirementImpl(Requirement):
|
|
|
27
27
|
def __init__(
|
|
28
28
|
self,
|
|
29
29
|
name: str,
|
|
30
|
-
default_value: bool,
|
|
30
|
+
default_value: bool, # noqa: FBT001
|
|
31
31
|
dynamic_arg_name: str,
|
|
32
32
|
github_settings_value: str,
|
|
33
33
|
get_configuration_value_func: Callable[[dict[str, Any]], Optional[bool]],
|
|
@@ -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.24"
|
|
@@ -21,10 +21,6 @@ from RepoAuditor.EntryPoint import app
|
|
|
21
21
|
|
|
22
22
|
from utilities import ScrubDurationGithuburlAndSpaces, GetGithubUrl, CheckPATFileExists
|
|
23
23
|
|
|
24
|
-
# ----------------------------------------------------------------------
|
|
25
|
-
_github_pat_filename = (Path(__file__).parent / "github_pat.txt").resolve()
|
|
26
|
-
CheckPATFileExists(_github_pat_filename)
|
|
27
|
-
|
|
28
24
|
# ----------------------------------------------------------------------
|
|
29
25
|
pytest.fixture(InitializeStreamCapabilities(), scope="session", autouse=True)
|
|
30
26
|
|
|
@@ -391,6 +387,9 @@ def args() -> list[str]:
|
|
|
391
387
|
# ----------------------------------------------------------------------
|
|
392
388
|
@pytest.fixture
|
|
393
389
|
def pat_args(args) -> list[str]:
|
|
390
|
+
_github_pat_filename = (Path(__file__).parent / "github_pat.txt").resolve()
|
|
391
|
+
CheckPATFileExists(_github_pat_filename)
|
|
392
|
+
|
|
394
393
|
with _github_pat_filename.open() as f:
|
|
395
394
|
pat_value = f.read().strip()
|
|
396
395
|
|
|
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.23 → repoauditor-0.2.24}/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
|
{repoauditor-0.2.23 → repoauditor-0.2.24}/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
|
{repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomization/Module.py
RENAMED
|
File without changes
|
{repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomization/__init__.py
RENAMED
|
File without changes
|
{repoauditor-0.2.23 → repoauditor-0.2.24}/src/RepoAuditor/Plugins/GitHubCustomizationPlugin.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.23 → repoauditor-0.2.24}/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
|