Skip to content

Commit 58e829f

Browse files
committed
Make Clippy stricter but disable needless-lifetimes lint as we often want to make the GIL lifetime explicit.
1 parent 46c524c commit 58e829f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ jobs:
1717
toolchain: stable
1818
profile: minimal
1919
components: rustfmt, clippy
20-
- run: |
20+
- env:
21+
CLIPPYFLAGS: --deny warnings --allow clippy::needless-lifetimes
22+
run: |
2123
cargo fmt --all -- --check
22-
cargo clippy --tests
23-
for example in examples/*; do (cd $example/; cargo clippy) || exit 1; done
24+
cargo clippy --tests -- $CLIPPYFLAGS
25+
for example in examples/*; do (cd $example/; cargo clippy -- $CLIPPYFLAGS) || exit 1; done
2426
2527
test:
2628
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }}

0 commit comments

Comments
 (0)