pyrig-codeql 3.2.0__tar.gz → 3.3.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/PKG-INFO +2 -2
  2. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/pyproject.toml +5 -5
  3. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/pyproject.toml.orig +30 -30
  4. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/version_control/remote/workflows/code_analysis.py +8 -13
  5. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/version_control/remote/workflows/health_check.py +0 -1
  6. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/LICENSE +0 -0
  7. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/README.md +0 -0
  8. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/__init__.py +0 -0
  9. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/py.typed +0 -0
  10. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/__init__.py +0 -0
  11. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/__init__.py +0 -0
  12. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/version_control/__init__.py +0 -0
  13. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/version_control/remote/__init__.py +0 -0
  14. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/version_control/remote/code_analyzer.py +0 -0
  15. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/configs/version_control/remote/workflows/__init__.py +0 -0
  16. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/resources/__init__.py +0 -0
  17. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/resources/action_codeql_analyze +0 -0
  18. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/resources/action_codeql_init +0 -0
  19. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/tools/__init__.py +0 -0
  20. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/tools/security/__init__.py +0 -0
  21. {pyrig_codeql-3.2.0 → pyrig_codeql-3.3.7}/src/pyrig_codeql/rig/tools/security/code.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrig-codeql
3
- Version: 3.2.0
3
+ Version: 3.3.7
4
4
  Summary: A pyrig plugin that integrates GitHub CodeQL.
5
5
  Keywords: pyrig
6
6
  Author: Winipedia
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Classifier: Programming Language :: Python :: 3.14
15
15
  Classifier: Programming Language :: Python :: 3.15
16
16
  Classifier: Typing :: Typed
17
- Requires-Dist: pyrig>=19.51.0
17
+ Requires-Dist: pyrig>=19.57.0
18
18
  Maintainer: Winipedia
19
19
  Maintainer-email: Winipedia <winipedia@gmx.de>
20
20
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyrig-codeql"
3
- version = "3.2.0"
3
+ version = "3.3.7"
4
4
  description = "A pyrig plugin that integrates GitHub CodeQL."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Programming Language :: Python :: 3.15",
17
17
  "Typing :: Typed",
18
18
  ]
19
- dependencies = ["pyrig>=19.51.0"]
19
+ dependencies = ["pyrig>=19.57.0"]
20
20
 
21
21
  [[project.authors]]
22
22
  name = "Winipedia"
@@ -48,9 +48,9 @@ dev = [
48
48
  "pre-commit-hooks>=6.0.0",
49
49
  "prek>=0.5.12",
50
50
  "pyflakes>=4.1.0",
51
- "pyorder>=1.0.81",
52
- "pyrig-opensource>=1.3.109",
53
- "pyrig-plugin>=1.2.108",
51
+ "pyorder>=1.1.0",
52
+ "pyrig-opensource>=1.4.0",
53
+ "pyrig-plugin>=1.3.0",
54
54
  "pytest>=9.2.0",
55
55
  "pytest-cov>=7.1.0",
56
56
  "pytest-randomly>=5.1.0",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyrig-codeql"
3
- version = "3.2.0"
3
+ version = "3.3.7"
4
4
  description = "A pyrig plugin that integrates GitHub CodeQL."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -27,7 +27,7 @@ classifiers = [
27
27
  "Typing :: Typed",
28
28
  ]
29
29
  dependencies = [
30
- "pyrig>=19.51.0",
30
+ "pyrig>=19.57.0",
31
31
  ]
32
32
 
33
33
  [project.urls]
@@ -42,34 +42,34 @@ pyrig-codeql = "pyrig_runtime.rig.cli.main:main"
42
42
 
43
43
  [dependency-groups]
44
44
  dev = [
45
- "actionlint-py>=1.7.12.25",
46
- "bandit>=1.9.4",
47
- "deptry>=0.25.1",
48
- "detect-secrets>=1.5.0",
49
- "hypofuzz>=25.11.1",
50
- "hypothesis>=6.170.23",
51
- "mkdocstrings[python]>=1.0.8",
52
- "pre-commit-hooks>=6.0.0",
53
- "prek>=0.5.12",
54
- "pyflakes>=4.1.0",
55
- "pyorder>=1.0.81",
56
- "pyrig-opensource>=1.3.109",
57
- "pyrig-plugin>=1.2.108",
58
- "pytest>=9.2.0",
59
- "pytest-cov>=7.1.0",
60
- "pytest-randomly>=5.1.0",
61
- "pytest-xdist>=3.8.0",
62
- "ruff>=0.17.6",
63
- "rumdl>=0.3.8",
64
- "ryl>=0.30.0",
65
- "shellcheck-py>=0.11.0.1",
66
- "shfmt-py>=4.2.0",
67
- "tombi>=1.11.3",
68
- "ty>=0.0.112",
69
- "typos>=1.52.2",
70
- "vulture>=2.16",
71
- "zensical>=0.1.4",
72
- "zizmor>=1.33.1",
45
+ "actionlint-py>=1.7.12.25",
46
+ "bandit>=1.9.4",
47
+ "deptry>=0.25.1",
48
+ "detect-secrets>=1.5.0",
49
+ "hypofuzz>=25.11.1",
50
+ "hypothesis>=6.170.23",
51
+ "mkdocstrings[python]>=1.0.8",
52
+ "pre-commit-hooks>=6.0.0",
53
+ "prek>=0.5.12",
54
+ "pyflakes>=4.1.0",
55
+ "pyorder>=1.1.0",
56
+ "pyrig-opensource>=1.4.0",
57
+ "pyrig-plugin>=1.3.0",
58
+ "pytest>=9.2.0",
59
+ "pytest-cov>=7.1.0",
60
+ "pytest-randomly>=5.1.0",
61
+ "pytest-xdist>=3.8.0",
62
+ "ruff>=0.17.6",
63
+ "rumdl>=0.3.8",
64
+ "ryl>=0.30.0",
65
+ "shellcheck-py>=0.11.0.1",
66
+ "shfmt-py>=4.2.0",
67
+ "tombi>=1.11.3",
68
+ "ty>=0.0.112",
69
+ "typos>=1.52.2",
70
+ "vulture>=2.16",
71
+ "zensical>=0.1.4",
72
+ "zizmor>=1.33.1",
73
73
  ]
74
74
 
75
75
  [build-system]
@@ -33,7 +33,6 @@ class CodeAnalysisWorkflowConfigFile(WorkflowConfigFile):
33
33
  def job_check_alerts(self) -> dict[str, Any]:
34
34
  """Check CodeQL alerts after all language analyses have completed."""
35
35
  return self.job(
36
- self.job_check_alerts,
37
36
  needs=(self.job_analyze,),
38
37
  permissions=self.permissions_job_check_alerts(),
39
38
  steps=self.steps_check_alerts(),
@@ -43,7 +42,6 @@ class CodeAnalysisWorkflowConfigFile(WorkflowConfigFile):
43
42
  def job_analyze(self) -> dict[str, Any]:
44
43
  """Build the matrix job that analyzes Python and workflow code."""
45
44
  return self.job(
46
- self.job_analyze,
47
45
  strategy=self.strategy_matrix(
48
46
  matrix=self.matrix({"language": ["python", "actions"]}),
49
47
  ),
@@ -56,9 +54,9 @@ class CodeAnalysisWorkflowConfigFile(WorkflowConfigFile):
56
54
  """Grant read access to code-scanning alerts."""
57
55
  return self.permission("security-events")
58
56
 
59
- def steps_check_alerts(self) -> list[dict[str, Any]]:
57
+ def steps_check_alerts(self) -> tuple[Callable[[], dict[str, Any]], ...]:
60
58
  """Return the CodeQL alert-check step."""
61
- return [self.step_check_alerts()]
59
+ return (self.step_check_alerts,)
62
60
 
63
61
  def permissions_job_analyze(self) -> dict[str, str]:
64
62
  """Grant the permissions required to analyze and upload CodeQL results."""
@@ -71,7 +69,6 @@ class CodeAnalysisWorkflowConfigFile(WorkflowConfigFile):
71
69
  def step_check_alerts(self) -> dict[str, Any]:
72
70
  """Fail if the analyzed ref has any open CodeQL alerts."""
73
71
  return self.step(
74
- self.step_check_alerts,
75
72
  run=RemoteVersionController.I.api_method_args(
76
73
  '--raw-field="ref=${GITHUB_REF}"',
77
74
  "--raw-field=state=open",
@@ -83,25 +80,23 @@ class CodeAnalysisWorkflowConfigFile(WorkflowConfigFile):
83
80
  env={"GH_TOKEN": self.insert_github_token()},
84
81
  )
85
82
 
86
- def steps_analyze(self) -> list[dict[str, Any]]:
83
+ def steps_analyze(self) -> tuple[Callable[[], dict[str, Any]], ...]:
87
84
  """Return checkout, initialization, and analysis steps."""
88
- return [
89
- self.step_checkout_repository(),
90
- self.step_initialize_codeql(),
91
- self.step_analyze_code(),
92
- ]
85
+ return (
86
+ self.step_checkout_repository,
87
+ self.step_initialize_codeql,
88
+ self.step_analyze_code,
89
+ )
93
90
 
94
91
  def step_analyze_code(self) -> dict[str, Any]:
95
92
  """Run the CodeQL analysis and upload its results."""
96
93
  return self.step(
97
- self.step_analyze_code,
98
94
  uses=self.action_codeql_analyze(),
99
95
  )
100
96
 
101
97
  def step_initialize_codeql(self) -> dict[str, Any]:
102
98
  """Initialize CodeQL for the current matrix language."""
103
99
  return self.step(
104
- self.step_initialize_codeql,
105
100
  uses=self.action_codeql_init(),
106
101
  with_={
107
102
  "languages": self.insert_expression("matrix.language"),
@@ -26,6 +26,5 @@ class HealthCheckWorkflowConfigFile(BaseHealthCheckWorkflowConfigFile):
26
26
  def job_code_analysis(self) -> dict[str, Any]:
27
27
  """Call the reusable code-analysis workflow."""
28
28
  return self.job_workflow_call(
29
- self.job_code_analysis,
30
29
  workflow=CodeAnalysisWorkflowConfigFile,
31
30
  )
File without changes
File without changes