mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Added parameters to enable bandit and pylint checks.
This commit is contained in:
13
.github/workflows/CompletePipeline.yml
vendored
13
.github/workflows/CompletePipeline.yml
vendored
@@ -93,6 +93,16 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11'
|
default: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11'
|
||||||
type: string
|
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:
|
codecov:
|
||||||
description: 'Publish merged coverage and unittest reports to Codecov.'
|
description: 'Publish merged coverage and unittest reports to Codecov.'
|
||||||
required: false
|
required: false
|
||||||
@@ -205,6 +215,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
||||||
package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }}
|
package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }}
|
||||||
|
bandit: ${{ inputs.bandit }}
|
||||||
|
pylint: ${{ inputs.pylint }}
|
||||||
artifact: CodeQuality
|
artifact: CodeQuality
|
||||||
|
|
||||||
DocCoverage:
|
DocCoverage:
|
||||||
@@ -219,7 +231,6 @@ jobs:
|
|||||||
uses: pyTooling/Actions/.github/workflows/Package.yml@dev
|
uses: pyTooling/Actions/.github/workflows/Package.yml@dev
|
||||||
needs:
|
needs:
|
||||||
- UnitTestingParams
|
- UnitTestingParams
|
||||||
# - UnitTesting
|
|
||||||
with:
|
with:
|
||||||
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
|
||||||
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
|
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
|
||||||
|
|||||||
2
dist/requirements.txt
vendored
2
dist/requirements.txt
vendored
@@ -1,2 +1,2 @@
|
|||||||
wheel ~= 0.45
|
wheel ~= 0.45
|
||||||
twine ~= 6.1
|
twine ~= 6.2
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ Example Pipelines
|
|||||||
.. code-block:: toml
|
.. code-block:: toml
|
||||||
|
|
||||||
[build-system]
|
[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"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
-r ../requirements.txt
|
-r ../requirements.txt
|
||||||
|
|
||||||
pyTooling ~= 8.5
|
pyTooling ~= 8.7
|
||||||
|
|
||||||
# Enforce latest version on ReadTheDocs
|
# Enforce latest version on ReadTheDocs
|
||||||
sphinx ~= 8.2
|
sphinx ~= 8.2
|
||||||
@@ -13,7 +13,7 @@ sphinx_rtd_theme ~= 3.0
|
|||||||
# Sphinx Extenstions
|
# Sphinx Extenstions
|
||||||
sphinxcontrib-mermaid ~= 1.0
|
sphinxcontrib-mermaid ~= 1.0
|
||||||
autoapi >= 2.0.1
|
autoapi >= 2.0.1
|
||||||
sphinx_design ~= 0.6.1
|
sphinx_design ~= 0.6
|
||||||
sphinx-copybutton >= 0.5.2
|
sphinx-copybutton >= 0.5
|
||||||
sphinx_autodoc_typehints ~= 3.2
|
sphinx_autodoc_typehints ~= 3.2
|
||||||
sphinx_reports ~= 0.9
|
sphinx_reports ~= 0.9
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ __version__ = "0.4.5"
|
|||||||
__keywords__ = ["GitHub Actions"]
|
__keywords__ = ["GitHub Actions"]
|
||||||
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"
|
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"
|
||||||
|
|
||||||
|
from pickle import dumps
|
||||||
from subprocess import check_call
|
from subprocess import check_call
|
||||||
|
|
||||||
from pyTooling.Decorators import export, readonly
|
from pyTooling.Decorators import export, readonly
|
||||||
|
|||||||
@@ -2,13 +2,14 @@
|
|||||||
requires = [
|
requires = [
|
||||||
"setuptools >= 80.0",
|
"setuptools >= 80.0",
|
||||||
"wheel ~= 0.45",
|
"wheel ~= 0.45",
|
||||||
"pyTooling ~= 8.5"
|
"pyTooling ~= 8.7"
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.pylint.format]
|
[tool.pylint.format]
|
||||||
indent-string="\t"
|
indent-string="\t"
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
|
ignore-long-lines = "^.{0,110}#: .*"
|
||||||
|
|
||||||
[tool.pylint.basic]
|
[tool.pylint.basic]
|
||||||
argument-naming-style = "camelCase"
|
argument-naming-style = "camelCase"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
pyTooling ~= 8.5
|
pyTooling ~= 8.7
|
||||||
|
|||||||
Reference in New Issue
Block a user