diff --git a/src/rattler_build_conda_compat/modify_recipe.py b/src/rattler_build_conda_compat/modify_recipe.py index 2c2ee5b..ffbeecb 100644 --- a/src/rattler_build_conda_compat/modify_recipe.py +++ b/src/rattler_build_conda_compat/modify_recipe.py @@ -21,7 +21,7 @@ yaml = YAML() yaml.preserve_quotes = True yaml.width = 4096 -yaml.indent(mapping=2, sequence=2, offset=0) +yaml.indent(mapping=2, sequence=4, offset=2) def _update_build_number_in_context(recipe: dict[str, Any], new_build_number: int) -> bool: diff --git a/tests/data/build_number/test_2/expected.yaml b/tests/data/build_number/test_2/expected.yaml index 8503020..3095c27 100644 --- a/tests/data/build_number/test_2/expected.yaml +++ b/tests/data/build_number/test_2/expected.yaml @@ -8,4 +8,4 @@ build: number: 0 source: -- url: foo + - url: foo diff --git a/tests/data/version/test_2/expected.yaml b/tests/data/version/test_2/expected.yaml index b146d59..e9a70d0 100644 --- a/tests/data/version/test_2/expected.yaml +++ b/tests/data/version/test_2/expected.yaml @@ -8,8 +8,8 @@ package: version: ${{ version }} source: -# please update the version here. -- if: target_platform == linux-64 - then: - url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz - sha256: 32d5d9fd23998c57e746c375a544edf544b74f0a18ad6bc3c38cbba968d5e6c7 + # please update the version here. + - if: target_platform == linux-64 + then: + url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz + sha256: 32d5d9fd23998c57e746c375a544edf544b74f0a18ad6bc3c38cbba968d5e6c7 diff --git a/tests/data/version/test_2/recipe.yaml b/tests/data/version/test_2/recipe.yaml index 5f12e9d..6de44d5 100644 --- a/tests/data/version/test_2/recipe.yaml +++ b/tests/data/version/test_2/recipe.yaml @@ -8,8 +8,8 @@ package: version: ${{ version }} source: -# please update the version here. -- if: target_platform == linux-64 - then: - url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz - sha256: 0811011e448628f0dfa6ebb5e3f76dc7bf6a15ee65ea9c5a277b12ea976d35bc + # please update the version here. + - if: target_platform == linux-64 + then: + url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz + sha256: 0811011e448628f0dfa6ebb5e3f76dc7bf6a15ee65ea9c5a277b12ea976d35bc diff --git a/tests/data/version/test_4/expected.yaml b/tests/data/version/test_4/expected.yaml index a4c18d8..2cb6a9c 100644 --- a/tests/data/version/test_4/expected.yaml +++ b/tests/data/version/test_4/expected.yaml @@ -9,6 +9,6 @@ package: source: url: - - ${{ cran_mirror }}/src/contrib/systemfit_${{ version }}.tar.gz - - ${{ cran_mirror }}/src/contrib/Archive/systemfit/systemfit_${{ version }}.tar.gz + - ${{ cran_mirror }}/src/contrib/systemfit_${{ version }}.tar.gz + - ${{ cran_mirror }}/src/contrib/Archive/systemfit/systemfit_${{ version }}.tar.gz sha256: 5994fbb81f1678325862414f58328cdc2c46d47efa1f23218e9416a4da431ce2