Skip to content

Commit

Permalink
Make ruff_db a required crate for ruff_python_semantic (#11874)
Browse files Browse the repository at this point in the history
## Summary

This PR makes the `ruff_db` a required crate for `ruff_python_semantic`.

Refer
https://github.com/astral-sh/ruff/actions/runs/9516626143/job/26233307158?pr=11872

## Test Plan

1. `maturin sdist --out dist`
2. `tar -xf dist/ruff-0.4.8.tar.gz --directory=dist/ruff-0.4.8`
3. `pip install dist/ruff-0.4.8.tar.gz` works
  • Loading branch information
dhruvmanila authored Jun 14, 2024
1 parent 89bb07c commit d681a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_python_semantic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ license = { workspace = true }
doctest = false

[dependencies]
ruff_db = { workspace = true, optional = true }
ruff_db = { workspace = true }
ruff_index = { workspace = true }
ruff_python_ast = { workspace = true }
ruff_python_stdlib = { workspace = true }
Expand All @@ -34,4 +34,4 @@ ruff_python_parser = { workspace = true }
workspace = true

[features]
red_knot = ["dep:ruff_db", "dep:salsa", "dep:tracing"]
red_knot = ["dep:salsa", "dep:tracing"]

0 comments on commit d681a45

Please sign in to comment.