diff --git a/Cargo.toml b/Cargo.toml index ed1fb009ee..0833ffbef7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,3 +41,9 @@ resolver = "2" [workspace.package] license = "MIT" repository = "https://github.com/facebook/pyrefly" + +[workspace.lints.clippy] +dbg_macro = "deny" + +[workspace.lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fbcode_build)"]} diff --git a/crates/pyrefly_bench_harness/Cargo.toml b/crates/pyrefly_bench_harness/Cargo.toml index db92adc9d2..3c96761197 100644 --- a/crates/pyrefly_bench_harness/Cargo.toml +++ b/crates/pyrefly_bench_harness/Cargo.toml @@ -12,3 +12,6 @@ license = "MIT" pyrefly = { path = "../../pyrefly" } pyrefly_config = { path = "../pyrefly_config" } pyrefly_util = { path = "../pyrefly_util" } + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_build/Cargo.toml b/crates/pyrefly_build/Cargo.toml index 2a626640d1..1063193883 100644 --- a/crates/pyrefly_build/Cargo.toml +++ b/crates/pyrefly_build/Cargo.toml @@ -29,5 +29,5 @@ pretty_assertions = { version = "1.4.1", features = ["alloc"], default-features [target.'cfg(not(target_arch = "wasm32"))'.dependencies] which = "8.0.5" -[lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fbcode_build)"]} +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_bundled/Cargo.toml b/crates/pyrefly_bundled/Cargo.toml index 5f0a6fb388..4c83d69101 100644 --- a/crates/pyrefly_bundled/Cargo.toml +++ b/crates/pyrefly_bundled/Cargo.toml @@ -19,3 +19,6 @@ zstd = "0.13.3" sha2 = "0.10.6" tar = "0.4.46" zstd = { version = "0.13.3", features = ["experimental", "zstdmt"] } + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_config/Cargo.toml b/crates/pyrefly_config/Cargo.toml index edd518e13c..8d7d3f422f 100644 --- a/crates/pyrefly_config/Cargo.toml +++ b/crates/pyrefly_config/Cargo.toml @@ -42,3 +42,6 @@ tempfile = "3.27.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] uv-pep440 = "0.0.76" which = "8.0.5" + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_derive/Cargo.toml b/crates/pyrefly_derive/Cargo.toml index b23e44bd61..23a2d197ee 100644 --- a/crates/pyrefly_derive/Cargo.toml +++ b/crates/pyrefly_derive/Cargo.toml @@ -17,3 +17,6 @@ proc-macro = true proc-macro2 = { version = "1.0.107", features = ["span-locations"] } quote = "1.0.47" syn = { version = "3", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_glean_schema/Cargo.toml b/crates/pyrefly_glean_schema/Cargo.toml index 512e513c60..50b24c3f19 100644 --- a/crates/pyrefly_glean_schema/Cargo.toml +++ b/crates/pyrefly_glean_schema/Cargo.toml @@ -12,3 +12,6 @@ license = "MIT" serde = { version = "1.0.229", features = ["derive", "rc"] } serde_json = { version = "1.0.151", features = ["alloc", "float_roundtrip", "raw_value", "unbounded_depth"] } serde_repr = "0.1.21" + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_graph/Cargo.toml b/crates/pyrefly_graph/Cargo.toml index 74fc2230f5..0e99c7e068 100644 --- a/crates/pyrefly_graph/Cargo.toml +++ b/crates/pyrefly_graph/Cargo.toml @@ -12,3 +12,6 @@ license = "MIT" dupe = "0.9.1" pyrefly_util = { path = "../pyrefly_util" } starlark_map = "0.14.2" + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_lsp_test/Cargo.toml b/crates/pyrefly_lsp_test/Cargo.toml index 9b7a793ab5..b7006bba59 100644 --- a/crates/pyrefly_lsp_test/Cargo.toml +++ b/crates/pyrefly_lsp_test/Cargo.toml @@ -18,3 +18,6 @@ pretty_assertions = { version = "1.4.1", features = ["alloc"], default-features pyrefly = { path = "../../pyrefly" } pyrefly_util = { path = "../pyrefly_util" } serde_json = { version = "1.0.151", features = ["alloc", "float_roundtrip", "raw_value", "unbounded_depth"] } + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_python/Cargo.toml b/crates/pyrefly_python/Cargo.toml index 28198816c2..2b9e8f5866 100644 --- a/crates/pyrefly_python/Cargo.toml +++ b/crates/pyrefly_python/Cargo.toml @@ -34,3 +34,6 @@ vec1 = { version = "1.12.1", features = ["serde"] } [dev-dependencies] serde_json = { version = "1.0.151", features = ["alloc", "float_roundtrip", "raw_value", "unbounded_depth"] } toml = { version = "1.1.4", features = ["preserve_order"] } + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_types/Cargo.toml b/crates/pyrefly_types/Cargo.toml index 4f734ac5f6..cd5ed69644 100644 --- a/crates/pyrefly_types/Cargo.toml +++ b/crates/pyrefly_types/Cargo.toml @@ -23,3 +23,6 @@ ruff_text_size = "0.0.11" starlark_map = "0.14.2" static_assertions = "1.1.0" vec1 = { version = "1.12.1", features = ["serde"] } + +[lints] +workspace = true \ No newline at end of file diff --git a/crates/pyrefly_util/Cargo.toml b/crates/pyrefly_util/Cargo.toml index e35dd3845f..f623d2c892 100644 --- a/crates/pyrefly_util/Cargo.toml +++ b/crates/pyrefly_util/Cargo.toml @@ -56,5 +56,5 @@ tempfile = "3.27.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] watchman_client = "0.9" -[lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fbcode_build)"]} +[lints] +workspace = true \ No newline at end of file diff --git a/crates/tsp_types/Cargo.toml b/crates/tsp_types/Cargo.toml index bf3f919b83..1aa3a4f312 100644 --- a/crates/tsp_types/Cargo.toml +++ b/crates/tsp_types/Cargo.toml @@ -13,3 +13,6 @@ lsp-server = "0.10.0" serde = { version = "1.0.229", features = ["derive", "rc"] } serde_json = { version = "1.0.151", features = ["alloc", "float_roundtrip", "raw_value", "unbounded_depth"] } serde_repr = "0.1.21" + +[lints] +workspace = true \ No newline at end of file diff --git a/pyrefly/Cargo.toml b/pyrefly/Cargo.toml index 19c6bd69ee..fc71b3301a 100644 --- a/pyrefly/Cargo.toml +++ b/pyrefly/Cargo.toml @@ -106,5 +106,5 @@ mimalloc = { version = "0.1.52", default-features = false } debug-stack-overflow = ["dep:backtrace-on-stack-overflow"] default = [] -[lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fbcode_build)"]} +[lints] +workspace = true \ No newline at end of file