Skip to content

Commit 6826557

Browse files
authored
ruff from fork (#7532)
1 parent 1f6b4c6 commit 6826557

File tree

2 files changed

+100
-88
lines changed

2 files changed

+100
-88
lines changed

Cargo.lock

Lines changed: 89 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,19 @@ rustpython-sre_engine = { path = "crates/sre_engine", version = "0.5.0" }
156156
rustpython-wtf8 = { path = "crates/wtf8", version = "0.5.0" }
157157
rustpython-doc = { path = "crates/doc", version = "0.5.0" }
158158

159+
# Use RustPython-packaged Ruff crates from the published fork while keeping
160+
# existing crate names in the codebase.
161+
ruff_python_parser = { package = "rustpython-ruff_python_parser", version = "0.15.8" }
162+
ruff_python_ast = { package = "rustpython-ruff_python_ast", version = "0.15.8" }
163+
ruff_text_size = { package = "rustpython-ruff_text_size", version = "0.15.8" }
164+
ruff_source_file = { package = "rustpython-ruff_source_file", version = "0.15.8" }
165+
# To update ruff crates, comment out the above lines and uncomment the following lines to pull directly from the Ruff repository at the specified commit hash.
159166
# Ruff tag 0.15.8 is based on commit c2a8815842f9dc5d24ec19385eae0f1a7188b0d9
160167
# at the time of this capture. We use the commit hash to ensure reproducible builds.
161-
ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
162-
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
163-
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
164-
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
168+
# ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
169+
# ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
170+
# ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
171+
# ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", rev = "c2a8815842f9dc5d24ec19385eae0f1a7188b0d9" }
165172

166173
phf = { version = "0.13.1", default-features = false, features = ["macros"]}
167174
ahash = "0.8.12"

0 commit comments

Comments
 (0)