8080 "docker_run_build_config_studio" ,
8181]
8282
83- APPLICATION_NAME = opencolorio_config_aces .__application_name__
83+ APPLICATION_NAME : str = opencolorio_config_aces .__application_name__
8484
85- APPLICATION_VERSION = opencolorio_config_aces .__version__
85+ APPLICATION_VERSION : str = opencolorio_config_aces .__version__
8686
87- PYTHON_PACKAGE_NAME = opencolorio_config_aces .__name__
87+ PYTHON_PACKAGE_NAME : str = opencolorio_config_aces .__name__
8888
89- GITHUB_REPOSITORY_NAME = "OpenColorIO-Config-ACES"
89+ GITHUB_REPOSITORY_NAME : str = "OpenColorIO-Config-ACES"
9090
91- PYPI_PACKAGE_NAME = "opencolorio-config-aces"
91+ PYPI_PACKAGE_NAME : str = "opencolorio-config-aces"
9292
93- ORG = "aswf"
93+ ORG : str = "aswf"
9494
95- CONTAINER = PYPI_PACKAGE_NAME
95+ CONTAINER : str = PYPI_PACKAGE_NAME
9696
9797
9898@task
@@ -102,7 +102,7 @@ def clean(
102102 bytecode : bool = False ,
103103 mypy : bool = True ,
104104 pytest : bool = True ,
105- ):
105+ ) -> None :
106106 """
107107 Clean the project.
108108
@@ -146,7 +146,7 @@ def clean(
146146def quality (
147147 ctx : Context ,
148148 pyright : bool = True ,
149- ):
149+ ) -> None :
150150 """
151151 Check the codebase with *Pyright* and lints various *restructuredText*
152152 files with *rst-lint*.
@@ -165,7 +165,7 @@ def quality(
165165
166166
167167@task
168- def precommit (ctx : Context ):
168+ def precommit (ctx : Context ) -> None :
169169 """
170170 Run the "pre-commit" hooks on the codebase.
171171
@@ -180,7 +180,7 @@ def precommit(ctx: Context):
180180
181181
182182@task
183- def tests (ctx : Context ):
183+ def tests (ctx : Context ) -> None :
184184 """
185185 Run the unit tests with *Pytest*.
186186
@@ -201,7 +201,7 @@ def tests(ctx: Context):
201201
202202
203203@task (quality , precommit , tests )
204- def preflight (ctx : Context ): # noqa: ARG001
204+ def preflight (ctx : Context ) -> None : # noqa: ARG001
205205 """
206206 Perform the preflight tasks, i.e., *formatting* and *quality*.
207207
@@ -215,7 +215,7 @@ def preflight(ctx: Context): # noqa: ARG001
215215
216216
217217@task
218- def docs (ctx : Context , html : bool = True , pdf : bool = True ):
218+ def docs (ctx : Context , html : bool = True , pdf : bool = True ) -> None :
219219 """
220220 Build the documentation.
221221
@@ -240,7 +240,7 @@ def docs(ctx: Context, html: bool = True, pdf: bool = True):
240240
241241
242242@task
243- def build_clf_transforms (ctx : Context ):
243+ def build_clf_transforms (ctx : Context ) -> None :
244244 """
245245 Build the *CLF* transforms.
246246
@@ -267,7 +267,7 @@ def build_clf_transforms(ctx: Context):
267267
268268
269269@task
270- def build_aces_conversion_graph (ctx : Context ):
270+ def build_aces_conversion_graph (ctx : Context ) -> None :
271271 """
272272 Build the *aces-dev* conversion graph.
273273
@@ -283,7 +283,7 @@ def build_aces_conversion_graph(ctx: Context):
283283
284284
285285@task
286- def build_config_common_tests (ctx : Context ):
286+ def build_config_common_tests (ctx : Context ) -> None :
287287 """
288288 Build the common tests *OpenColorIO* config(s).
289289
@@ -299,7 +299,7 @@ def build_config_common_tests(ctx: Context):
299299
300300
301301@task
302- def build_config_reference_analytical (ctx : Context ):
302+ def build_config_reference_analytical (ctx : Context ) -> None :
303303 """
304304 Build the *aces-dev* reference analytical *OpenColorIO* config.
305305
@@ -315,7 +315,7 @@ def build_config_reference_analytical(ctx: Context):
315315
316316
317317@task
318- def update_mapping_file_reference (ctx : Context ): # noqa: ARG001
318+ def update_mapping_file_reference (ctx : Context ) -> None : # noqa: ARG001
319319 """
320320 Update the *aces-dev* reference *OpenColorIO* config mapping file.
321321
@@ -349,7 +349,7 @@ def update_mapping_file_reference(ctx: Context): # noqa: ARG001
349349
350350
351351@task
352- def build_config_reference (ctx : Context ):
352+ def build_config_reference (ctx : Context ) -> None :
353353 """
354354 Build the *aces-dev* reference *OpenColorIO* config.
355355
@@ -365,7 +365,7 @@ def build_config_reference(ctx: Context):
365365
366366
367367@task
368- def update_mapping_file_cg (ctx : Context ): # noqa: ARG001
368+ def update_mapping_file_cg (ctx : Context ) -> None : # noqa: ARG001
369369 """
370370 Update the *ACES* Computer Graphics (CG) *OpenColorIO* mapping file.
371371
@@ -396,7 +396,7 @@ def update_mapping_file_cg(ctx: Context): # noqa: ARG001
396396
397397
398398@task
399- def build_config_cg (ctx : Context ):
399+ def build_config_cg (ctx : Context ) -> None :
400400 """
401401 Build the *ACES* Computer Graphics (CG) *OpenColorIO* config.
402402
@@ -412,7 +412,7 @@ def build_config_cg(ctx: Context):
412412
413413
414414@task
415- def update_mapping_file_studio (ctx : Context ): # noqa: ARG001
415+ def update_mapping_file_studio (ctx : Context ) -> None : # noqa: ARG001
416416 """
417417 Update the *ACES* Studio *OpenColorIO* mapping file.
418418
@@ -444,7 +444,7 @@ def update_mapping_file_studio(ctx: Context): # noqa: ARG001
444444
445445
446446@task
447- def build_config_studio (ctx : Context ):
447+ def build_config_studio (ctx : Context ) -> None :
448448 """
449449 Build the *ACES* Studio *OpenColorIO* config.
450450
@@ -460,7 +460,7 @@ def build_config_studio(ctx: Context):
460460
461461
462462@task
463- def requirements (ctx : Context ):
463+ def requirements (ctx : Context ) -> None :
464464 """
465465 Export the *requirements.txt* file.
466466
@@ -481,7 +481,7 @@ def requirements(ctx: Context):
481481
482482
483483@task (requirements )
484- def docker_build (ctx : Context ):
484+ def docker_build (ctx : Context ) -> None :
485485 """
486486 Build the *docker* image.
487487
@@ -499,7 +499,7 @@ def docker_build(ctx: Context):
499499
500500
501501@task
502- def docker_remove (ctx : Context ):
502+ def docker_remove (ctx : Context ) -> None :
503503 """
504504 Stop and remove the *docker* container.
505505
@@ -518,7 +518,7 @@ def docker_remove(ctx: Context):
518518 ctx .run (f"docker rm { CONTAINER } " )
519519
520520
521- def run_in_container (ctx : Context , command : str ):
521+ def run_in_container (ctx : Context , command : str ) -> None :
522522 """
523523 Run given command in *docker* container.
524524
@@ -538,7 +538,7 @@ def run_in_container(ctx: Context, command: str):
538538
539539
540540@task
541- def docker_run_docs (ctx , html : bool = True , pdf : bool = True ):
541+ def docker_run_docs (ctx : Context , html : bool = True , pdf : bool = True ) -> None :
542542 """
543543 Build the documentation in the *docker* container.
544544
@@ -564,7 +564,7 @@ def docker_run_docs(ctx, html: bool = True, pdf: bool = True):
564564
565565
566566@task
567- def docker_run_build_clf_transforms (ctx : Context ):
567+ def docker_run_build_clf_transforms (ctx : Context ) -> None :
568568 """
569569 Build the *CLF* transforms in the *docker* container.
570570
@@ -578,7 +578,7 @@ def docker_run_build_clf_transforms(ctx: Context):
578578
579579
580580@task
581- def docker_run_build_aces_conversion_graph (ctx : Context ):
581+ def docker_run_build_aces_conversion_graph (ctx : Context ) -> None :
582582 """
583583 Build the *aces-dev* conversion graph in the *docker* container.
584584
@@ -592,7 +592,7 @@ def docker_run_build_aces_conversion_graph(ctx: Context):
592592
593593
594594@task
595- def docker_run_build_config_common_tests (ctx : Context ):
595+ def docker_run_build_config_common_tests (ctx : Context ) -> None :
596596 """
597597 Build the common tests *OpenColorIO* config(s) in the *docker* container.
598598
@@ -606,7 +606,7 @@ def docker_run_build_config_common_tests(ctx: Context):
606606
607607
608608@task
609- def docker_run_build_config_reference_analytical (ctx : Context ):
609+ def docker_run_build_config_reference_analytical (ctx : Context ) -> None :
610610 """
611611 Build the *aces-dev* reference analytical *OpenColorIO* config in the
612612 *docker* container.
@@ -620,7 +620,7 @@ def docker_run_build_config_reference_analytical(ctx: Context):
620620 run_in_container (ctx , "invoke build-config-reference-analytical" )
621621
622622
623- def docker_run_update_mapping_file_reference (ctx : Context ):
623+ def docker_run_update_mapping_file_reference (ctx : Context ) -> None :
624624 """
625625 Update the *aces-dev* reference *OpenColorIO* config mapping file in the
626626 *docker* container.
@@ -635,7 +635,7 @@ def docker_run_update_mapping_file_reference(ctx: Context):
635635
636636
637637@task
638- def docker_run_build_config_reference (ctx : Context ):
638+ def docker_run_build_config_reference (ctx : Context ) -> None :
639639 """
640640 Build the *aces-dev* reference *OpenColorIO* config in the *docker*
641641 container.
@@ -649,7 +649,7 @@ def docker_run_build_config_reference(ctx: Context):
649649 run_in_container (ctx , "invoke build-config-reference" )
650650
651651
652- def docker_run_update_mapping_file_cg (ctx : Context ):
652+ def docker_run_update_mapping_file_cg (ctx : Context ) -> None :
653653 """
654654 Update the *ACES* Computer Graphics (CG) *OpenColorIO* config mapping file
655655 in the *docker* container.
@@ -664,7 +664,7 @@ def docker_run_update_mapping_file_cg(ctx: Context):
664664
665665
666666@task
667- def docker_run_build_config_cg (ctx : Context ):
667+ def docker_run_build_config_cg (ctx : Context ) -> None :
668668 """
669669 Build the *ACES* Computer Graphics (CG) *OpenColorIO* config in the
670670 *docker* container.
@@ -678,7 +678,7 @@ def docker_run_build_config_cg(ctx: Context):
678678 run_in_container (ctx , "invoke build-config-cg" )
679679
680680
681- def docker_run_update_mapping_file_studio (ctx : Context ):
681+ def docker_run_update_mapping_file_studio (ctx : Context ) -> None :
682682 """
683683 Update the *ACES* Studio *OpenColorIO* config mapping file in the *docker*
684684 container.
@@ -693,7 +693,7 @@ def docker_run_update_mapping_file_studio(ctx: Context):
693693
694694
695695@task
696- def docker_run_build_config_studio (ctx : Context ):
696+ def docker_run_build_config_studio (ctx : Context ) -> None :
697697 """
698698 Build the *ACES* Studio *OpenColorIO* config in the *docker* container.
699699
0 commit comments