Skip to content

Commit

Permalink
use conda-forge indent settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Aug 5, 2024
1 parent 106df2c commit d0856ab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/rattler_build_conda_compat/modify_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/data/build_number/test_2/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ build:
number: 0

source:
- url: foo
- url: foo
10 changes: 5 additions & 5 deletions tests/data/version/test_2/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions tests/data/version/test_2/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/data/version/test_4/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0856ab

Please sign in to comment.