mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-13 03:26:55 +08:00
75 lines
911 B
ReStructuredText
75 lines
911 B
ReStructuredText
.. _JOBTMPL/StaticTypeChecking:
|
|
|
|
StaticTypeCheck
|
|
###############
|
|
|
|
collect static type check result with mypy, and optionally upload results as an HTML report.
|
|
|
|
Example ``commands``:
|
|
|
|
1. Regular package
|
|
|
|
.. code-block:: yaml
|
|
|
|
commands: mypy --html-report htmlmypy -p ToolName
|
|
|
|
|
|
2. Parent namespace package
|
|
|
|
.. code-block:: yaml
|
|
|
|
commands: |
|
|
touch Parent/__init__.py
|
|
mypy --html-report htmlmypy -p ToolName
|
|
|
|
3. Child namespace package
|
|
|
|
.. code-block:: yaml
|
|
|
|
commands: |
|
|
cd Parent
|
|
mypy --html-report ../htmlmypy -p ToolName
|
|
|
|
|
|
Instantiation
|
|
*************
|
|
|
|
Simple Example
|
|
==============
|
|
|
|
.. code-block:: yaml
|
|
|
|
TBD
|
|
|
|
Complex Example
|
|
===============
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
TBD
|
|
|
|
Parameters
|
|
**********
|
|
|
|
TBD 1
|
|
=====
|
|
|
|
TBD
|
|
|
|
TBD 1
|
|
=====
|
|
|
|
TBD
|
|
|
|
Secrets
|
|
*******
|
|
|
|
This job template needs no secrets.
|
|
|
|
Results
|
|
*******
|
|
|
|
This job template has no output parameters.
|