Skip to content

Commit

Permalink
chore: move clippy config to workspace
Browse files Browse the repository at this point in the history
This makes it easier to run clippy just like it is ran in the CI.
  • Loading branch information
m4tx committed Nov 12, 2024
1 parent d6b2eb6 commit c762231
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Run clippy
run: cargo clippy --no-deps -- -Dclippy::all -Wclippy::pedantic
run: cargo clippy --no-deps --

coverage:
if: github.event_name == 'push' || github.event_name == 'schedule' ||
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ resolver = "2"
edition = "2021"
license = "MIT OR Apache-2.0"

[workspace.lints.clippy]
all = "deny"
pedantic = "warn"

[workspace.dependencies]
anyhow = "1.0.92"
askama = "0.12.1"
Expand Down
3 changes: 3 additions & 0 deletions flareon-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition.workspace = true
license.workspace = true
description = "Modern web framework focused on speed and ease of use - CLI tool."

[lints]
workspace = true

[dependencies]
anyhow.workspace = true
cargo_toml.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions flareon-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition.workspace = true
license.workspace = true
description = "Modern web framework focused on speed and ease of use - code generation utils."

[lints]
workspace = true

[dependencies]
convert_case.workspace = true
darling.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions flareon-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ proc-macro = true
name = "tests"
path = "tests/compile_tests.rs"

[lints]
workspace = true

[dependencies]
darling.workspace = true
flareon_codegen.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions flareon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition.workspace = true
license.workspace = true
description = "Modern web framework focused on speed and ease of use."

[lints]
workspace = true

[dependencies]
askama.workspace = true
askama_derive.workspace = true
Expand Down

0 comments on commit c762231

Please sign in to comment.