@@ -193,7 +193,9 @@ def test_py_matrix_on_github(py_recipe, jinja_env):
193
193
assert matrix_dir .is_dir ()
194
194
# single matrix entry - readme is generated later in main function
195
195
assert len (list (matrix_dir .iterdir ())) == 2
196
- assert Path (py_recipe .recipe , ".github" , "workflows" , "conda-build.yml" ).exists ()
196
+ assert Path (
197
+ py_recipe .recipe , ".github" , "workflows" , "conda-build.yml"
198
+ ).exists ()
197
199
198
200
199
201
def test_py_matrix_on_azure (py_recipe , jinja_env ):
@@ -256,9 +258,7 @@ def test_stdlib_deployment_target(
256
258
)
257
259
# this configuration should be run
258
260
assert stdlib_deployment_target_recipe .config ["azure" ]["enabled" ]
259
- matrix_dir = Path (
260
- stdlib_deployment_target_recipe .recipe , ".ci_support"
261
- )
261
+ matrix_dir = Path (stdlib_deployment_target_recipe .recipe , ".ci_support" )
262
262
assert matrix_dir .is_dir ()
263
263
with open (matrix_dir .joinpath ("osx_64_.yaml" )) as f :
264
264
lines = f .readlines ()
@@ -354,9 +354,7 @@ def test_upload_on_branch_appveyor(upload_on_branch_recipe, jinja_env):
354
354
assert upload_on_branch_recipe .config ["upload_on_branch" ] == "foo-branch"
355
355
356
356
# Check that the parameter is in the generated file.
357
- with open (
358
- Path (upload_on_branch_recipe .recipe , ".appveyor.yml" )
359
- ) as fp :
357
+ with open (Path (upload_on_branch_recipe .recipe , ".appveyor.yml" )) as fp :
360
358
content = yaml .safe_load (fp )
361
359
assert "%APPVEYOR_REPO_BRANCH%" in content ["deploy_script" ][0 ]
362
360
assert "UPLOAD_ON_BRANCH=foo-branch" in content ["deploy_script" ][- 2 ]
@@ -498,9 +496,9 @@ def test_render_with_all_skipped_generates_readme(skipped_recipe, jinja_env):
498
496
def test_render_windows_with_skipped_python (python_skipped_recipe , jinja_env ):
499
497
config = python_skipped_recipe .config
500
498
config ["provider" ]["win" ] = "appveyor"
501
- config ["exclusive_config_file" ] = str (Path (
502
- python_skipped_recipe .recipe , "recipe" , "long_config.yaml"
503
- ))
499
+ config ["exclusive_config_file" ] = str (
500
+ Path ( python_skipped_recipe .recipe , "recipe" , "long_config.yaml" )
501
+ )
504
502
configure_feedstock .render_appveyor (
505
503
jinja_env = jinja_env ,
506
504
forge_config = config ,
@@ -625,8 +623,12 @@ def test_migrator_cfp_override(recipe_migration_cfep9, jinja_env):
625
623
626
624
def test_migrator_delete_old (recipe_migration_cfep9 , jinja_env ):
627
625
cfp_file = recipe_migration_cfep9 .config ["exclusive_config_file" ]
628
- cfp_migration_dir = Path (cfp_file ).parent .joinpath ("share" , "conda-forge" , "migrations" )
629
- recipe_path = Path (recipe_migration_cfep9 .recipe , ".ci_support" , "migrations" , "zlib.yaml" )
626
+ cfp_migration_dir = Path (cfp_file ).parent .joinpath (
627
+ "share" , "conda-forge" , "migrations"
628
+ )
629
+ recipe_path = Path (
630
+ recipe_migration_cfep9 .recipe , ".ci_support" , "migrations" , "zlib.yaml"
631
+ )
630
632
assert recipe_path .exists ()
631
633
cfp_migration_dir .mkdir (parents = True , exist_ok = True )
632
634
configure_feedstock .render_azure (
@@ -653,7 +655,7 @@ def test_migrator_downgrade_recipe(
653
655
".ci_support" ,
654
656
"migrations" ,
655
657
)
656
- assert ( len (list (migrations_dir .iterdir ())) == 2 )
658
+ assert len (list (migrations_dir .iterdir ())) == 2
657
659
658
660
with open (
659
661
Path (
@@ -678,8 +680,10 @@ def test_migrator_compiler_version_recipe(
678
680
forge_dir = recipe_migration_win_compiled .recipe ,
679
681
)
680
682
681
- migrations_dir = Path (recipe_migration_win_compiled .recipe , ".ci_support" , "migrations" )
682
- assert (len (list (migrations_dir .iterdir ())) == 1 )
683
+ migrations_dir = Path (
684
+ recipe_migration_win_compiled .recipe , ".ci_support" , "migrations"
685
+ )
686
+ assert len (list (migrations_dir .iterdir ())) == 1
683
687
684
688
dir = Path (recipe_migration_win_compiled .recipe , ".ci_support" )
685
689
rendered_variants = [item .name for item in dir .iterdir ()]
@@ -784,9 +788,9 @@ def test_conda_forge_yaml_empty(config_yaml):
784
788
def test_noarch_platforms_bad_yaml (config_yaml , caplog ):
785
789
load_forge_config = lambda : configure_feedstock ._load_forge_config ( # noqa
786
790
config_yaml ,
787
- exclusive_config_file = str (Path (
788
- config_yaml , "recipe" , "default_config.yaml"
789
- )) ,
791
+ exclusive_config_file = str (
792
+ Path ( config_yaml , "recipe" , "default_config.yaml" )
793
+ ),
790
794
)
791
795
792
796
with open (Path (config_yaml , "conda-forge.yml" ), "a+" ) as fp :
@@ -811,7 +815,9 @@ def test_forge_yml_alt_path(config_yaml):
811
815
)
812
816
813
817
forge_yml = config_yaml_path .joinpath ("conda-forge.yml" )
814
- forge_yml_alt = config_yaml_path .joinpath (".config" , "feedstock-config.yml" )
818
+ forge_yml_alt = config_yaml_path .joinpath (
819
+ ".config" , "feedstock-config.yml"
820
+ )
815
821
816
822
forge_yml_alt .parent .mkdir ()
817
823
forge_yml .rename (forge_yml_alt )
0 commit comments