@@ -10,7 +10,9 @@ def call(Map config = [:]){
1010 requires_slurm: Whether the child tasks require the slurm scheduler.
1111 deployable: Whether the package can be deployed by Jenkins.
1212 skip_doc_build: Only skips the doc build.
13- run_mypy: Whether to run mypy on the package
13+ run_mypy: DEPRECATED and ignored. mypy now runs automatically whenever a
14+ py.typed marker exists under the package's src/ (matching `make check`
15+ and GH Actions).
1416 env_reqs: The pyproject.toml extras to install with `make install` (e.g. "ci_jenkins").
1517 Empty/omitted leaves base.mk's default ("dev"), which is correct for standalone repos.
1618 github_credentials_id: Jenkins credential ID to use during the deploy stage when pushing
@@ -37,7 +39,12 @@ def call(Map config = [:]){
3739 def requires_slurm = config. requires_slurm ?: false
3840 def is_deployable = (config?. deployable == true )
3941 def skip_doc_build = (config?. skip_doc_build == true )
40- def run_mypy = (config. run_mypy != null ) ? config. run_mypy : true
42+ // DEPRECATED: run_mypy no longer controls anything. mypy runs in checkFormatting
43+ // whenever a py.typed marker exists under src/. Accepted for backward compatibility.
44+ if (config. run_mypy != null ) {
45+ echo " WARNING: 'run_mypy' is deprecated and ignored; mypy now runs automatically " +
46+ " when a py.typed marker exists under src/."
47+ }
4148 // Empty string leaves base.mk's default ("dev") in effect. installPackage in
4249 // build_stages.groovy only sets ENV_REQS=... when this is non-empty.
4350 def env_reqs = config. env_reqs ?: " "
@@ -59,7 +66,6 @@ def call(Map config = [:]){
5966 echo " requires_slurm: ${ requires_slurm} "
6067 echo " is_deployable: ${ is_deployable} "
6168 echo " skip_doc_build: ${ skip_doc_build} "
62- echo " run_mypy: ${ run_mypy} "
6369 echo " env_reqs: ${ env_reqs} "
6470
6571 if (stagger_scheduled_builds && scheduled_branches. size() > 1 ) {
@@ -259,7 +265,7 @@ def call(Map config = [:]){
259265 buildStages. runDebugInfo(skipEval)
260266 buildStages. buildEnvironment()
261267 buildStages. installPackage(env_reqs)
262- buildStages. checkFormatting(run_mypy )
268+ buildStages. checkFormatting()
263269 // Transform test type inputs to actual make test target names
264270 tests = test_types. collect { " test-${ it} " }
265271 buildStages. runTests(tests, run_weekly)
0 commit comments