Skip to content

Commit fc08112

Browse files
committed
Added parameters to enable bandit and pylint checks.
1 parent 953d069 commit fc08112

7 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/CompletePipeline.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ on:
9393
required: false
9494
default: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11'
9595
type: string
96+
bandit:
97+
description: 'Run Static Application Security Testing (SAST) using Bandit.'
98+
required: false
99+
default: 'false'
100+
type: string
101+
pylint:
102+
description: 'Run Python linting using pylint.'
103+
required: false
104+
default: 'false'
105+
type: string
96106
codecov:
97107
description: 'Publish merged coverage and unittest reports to Codecov.'
98108
required: false
@@ -205,6 +215,8 @@ jobs:
205215
with:
206216
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
207217
package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }}
218+
bandit: ${{ inputs.bandit }}
219+
pylint: ${{ inputs.pylint }}
208220
artifact: CodeQuality
209221

210222
DocCoverage:
@@ -219,7 +231,6 @@ jobs:
219231
uses: pyTooling/Actions/.github/workflows/Package.yml@dev
220232
needs:
221233
- UnitTestingParams
222-
# - UnitTesting
223234
with:
224235
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
225236
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}

dist/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
wheel ~= 0.45
2-
twine ~= 6.1
2+
twine ~= 6.2

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Example Pipelines
164164
.. code-block:: toml
165165
166166
[build-system]
167-
requires = ["setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.5"]
167+
requires = ["setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.7"]
168168
build-backend = "setuptools.build_meta"
169169
170170
[tool.mypy]

doc/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r ../requirements.txt
22

3-
pyTooling ~= 8.5
3+
pyTooling ~= 8.7
44

55
# Enforce latest version on ReadTheDocs
66
sphinx ~= 8.2
@@ -13,7 +13,7 @@ sphinx_rtd_theme ~= 3.0
1313
# Sphinx Extenstions
1414
sphinxcontrib-mermaid ~= 1.0
1515
autoapi >= 2.0.1
16-
sphinx_design ~= 0.6.1
17-
sphinx-copybutton >= 0.5.2
16+
sphinx_design ~= 0.6
17+
sphinx-copybutton >= 0.5
1818
sphinx_autodoc_typehints ~= 3.2
1919
sphinx_reports ~= 0.9

myPackage/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
__keywords__ = ["GitHub Actions"]
4141
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"
4242

43+
from pickle import dumps
4344
from subprocess import check_call
4445

4546
from pyTooling.Decorators import export, readonly

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
requires = [
33
"setuptools >= 80.0",
44
"wheel ~= 0.45",
5-
"pyTooling ~= 8.5"
5+
"pyTooling ~= 8.7"
66
]
77
build-backend = "setuptools.build_meta"
88

99
[tool.pylint.format]
1010
indent-string="\t"
1111
max-line-length = 120
12+
ignore-long-lines = "^.{0,110}#: .*"
1213

1314
[tool.pylint.basic]
1415
argument-naming-style = "camelCase"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyTooling ~= 8.5
1+
pyTooling ~= 8.7

0 commit comments

Comments
 (0)