Added parameters to enable bandit and pylint checks.

This commit is contained in:
Patrick Lehmann
2025-10-05 15:14:39 +02:00
parent 953d0698c9
commit fc08112235
7 changed files with 21 additions and 8 deletions

View File

@@ -93,6 +93,16 @@ on:
required: false
default: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11'
type: string
bandit:
description: 'Run Static Application Security Testing (SAST) using Bandit.'
required: false
default: 'false'
type: string
pylint:
description: 'Run Python linting using pylint.'
required: false
default: 'false'
type: string
codecov:
description: 'Publish merged coverage and unittest reports to Codecov.'
required: false
@@ -205,6 +215,8 @@ jobs:
with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }}
bandit: ${{ inputs.bandit }}
pylint: ${{ inputs.pylint }}
artifact: CodeQuality
DocCoverage:
@@ -219,7 +231,6 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Package.yml@dev
needs:
- UnitTestingParams
# - UnitTesting
with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}

View File

@@ -1,2 +1,2 @@
wheel ~= 0.45
twine ~= 6.1
twine ~= 6.2

View File

@@ -164,7 +164,7 @@ Example Pipelines
.. code-block:: toml
[build-system]
requires = ["setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.5"]
requires = ["setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.7"]
build-backend = "setuptools.build_meta"
[tool.mypy]

View File

@@ -1,6 +1,6 @@
-r ../requirements.txt
pyTooling ~= 8.5
pyTooling ~= 8.7
# Enforce latest version on ReadTheDocs
sphinx ~= 8.2
@@ -13,7 +13,7 @@ sphinx_rtd_theme ~= 3.0
# Sphinx Extenstions
sphinxcontrib-mermaid ~= 1.0
autoapi >= 2.0.1
sphinx_design ~= 0.6.1
sphinx-copybutton >= 0.5.2
sphinx_design ~= 0.6
sphinx-copybutton >= 0.5
sphinx_autodoc_typehints ~= 3.2
sphinx_reports ~= 0.9

View File

@@ -40,6 +40,7 @@ __version__ = "0.4.5"
__keywords__ = ["GitHub Actions"]
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"
from pickle import dumps
from subprocess import check_call
from pyTooling.Decorators import export, readonly

View File

@@ -2,13 +2,14 @@
requires = [
"setuptools >= 80.0",
"wheel ~= 0.45",
"pyTooling ~= 8.5"
"pyTooling ~= 8.7"
]
build-backend = "setuptools.build_meta"
[tool.pylint.format]
indent-string="\t"
max-line-length = 120
ignore-long-lines = "^.{0,110}#: .*"
[tool.pylint.basic]
argument-naming-style = "camelCase"

View File

@@ -1 +1 @@
pyTooling ~= 8.5
pyTooling ~= 8.7