Skip to content

Commit e835249

Browse files
authored
port over proptests to hegel (#16)
`proptest::sample::Index` is quite terrible. Hegel uses Hypothesis underneath which is a much nicer experience.
1 parent 885d414 commit e835249

9 files changed

Lines changed: 393 additions & 407 deletions

File tree

.claude/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/settings.local.json
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"Bash(cargo test)",
55
"Bash(cargo test:*)",
66
"Bash(cargo clippy:*)",
7-
"Bash(cargo fix:*)"
7+
"Bash(cargo fix:*)",
8+
"Bash(cargo check:*)"
89
],
910
"deny": [],
1011
"ask": []
1112
}
12-
}
13+
}

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
RUSTFLAGS: -D warnings
1717
steps:
1818
- uses: actions/checkout@v3
19+
with:
20+
persist-credentials: false
1921
- uses: dtolnay/rust-toolchain@stable
2022
with:
2123
components: rustfmt, clippy
@@ -55,22 +57,26 @@ jobs:
5557
RUSTFLAGS: -D warnings
5658
steps:
5759
- uses: actions/checkout@v3
60+
with:
61+
persist-credentials: false
5862
- uses: dtolnay/rust-toolchain@master
5963
with:
6064
toolchain: ${{ matrix.rust-version }}
6165
components: rustfmt, clippy
6266
- uses: taiki-e/install-action@cargo-hack
67+
- name: Install uv
68+
uses: astral-sh/setup-uv@v7
6369
- uses: Swatinem/rust-cache@v2
6470
- name: Build
6571
run: |
6672
cargo hack build --feature-powerset
6773
- name: Test
6874
# Dev dependencies have an MSRV > 1.70.
69-
if: ${{ matrix.rust-version.version == 'stable' }}
75+
if: ${{ matrix.rust-version == 'stable' }}
7076
run: cargo hack test --feature-powerset
7177
- name: Test with updated Cargo.lock
7278
# Dev dependencies have an MSRV > 1.70.
73-
if: ${{ matrix.rust-version.version == 'stable' }}
79+
if: ${{ matrix.rust-version == 'stable' }}
7480
run: |
7581
cargo update
7682
cargo hack test --feature-powerset

.github/workflows/coverage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ jobs:
2020
RUSTFLAGS: -D warnings
2121
steps:
2222
- uses: actions/checkout@v3
23+
with:
24+
persist-credentials: false
2325
- uses: dtolnay/rust-toolchain@stable
2426
with:
2527
components: llvm-tools-preview
2628
- uses: Swatinem/rust-cache@v2
2729

2830
- name: Install latest nextest release
2931
uses: taiki-e/install-action@nextest
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v7
3034
- name: Install cargo-llvm-cov
3135
uses: taiki-e/install-action@cargo-llvm-cov
3236
- name: Update Cargo.lock

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15+
with:
16+
persist-credentials: false
1517
- uses: dtolnay/rust-toolchain@stable
1618
- name: Update Cargo.lock
1719
run: cargo update

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/target
2-
# Cargo.lock is checked in to support older Rust versions
2+
/.hegel

0 commit comments

Comments
 (0)