mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56: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
|
||||
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 }}
|
||||
|
||||
2
dist/requirements.txt
vendored
2
dist/requirements.txt
vendored
@@ -1,2 +1,2 @@
|
||||
wheel ~= 0.45
|
||||
twine ~= 6.1
|
||||
twine ~= 6.2
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1 +1 @@
|
||||
pyTooling ~= 8.5
|
||||
pyTooling ~= 8.7
|
||||
|
||||
Reference in New Issue
Block a user