From b513e08b5b5fbb2a5573e4a75546f6981d87a790 Mon Sep 17 00:00:00 2001 From: konsti Date: Sun, 13 Oct 2024 09:42:19 +0200 Subject: [PATCH] Better lint config (#25) --- .github/workflows/CI.yml | 19 ++++++++++++++++--- src/lib.rs | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b01a1e2..3fceb35 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,13 +7,26 @@ on: name: CI jobs: - check: - name: Check + lint-rust: + name: Lint Rust runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo check + with: + components: clippy + - name: Clippy + env: + RUSTFLAGS: -D warnings + run: cargo clippy --workspace + - name: Clippy (all features) + env: + RUSTFLAGS: -D warnings + run: cargo clippy --workspace --all-features + - name: Check documentation + env: + RUSTDOCFLAGS: -D warnings + run: cargo doc --workspace --all-features --no-deps --document-private-items test: name: Test Suite diff --git a/src/lib.rs b/src/lib.rs index 897c7a6..b967d18 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,7 +41,7 @@ pub struct Project { pub requires_python: Option, /// License pub license: Option, - /// License Files (PEP 639) - https://peps.python.org/pep-0639/#add-license-files-key + /// License Files (PEP 639) - pub license_files: Option, /// The people or organizations considered to be the "authors" of the project pub authors: Option>,