Skip to content

Commit

Permalink
Better lint config (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin authored Oct 13, 2024
1 parent 6807fe3 commit b513e08
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct Project {
pub requires_python: Option<VersionSpecifiers>,
/// License
pub license: Option<License>,
/// License Files (PEP 639) - https://peps.python.org/pep-0639/#add-license-files-key
/// License Files (PEP 639) - <https://peps.python.org/pep-0639/#add-license-files-key>
pub license_files: Option<LicenseFiles>,
/// The people or organizations considered to be the "authors" of the project
pub authors: Option<Vec<Contact>>,
Expand Down

0 comments on commit b513e08

Please sign in to comment.