-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ruff-python-parser to compute Python imports
The goal is to use ruff to replace Dominik's ad-hoc parser. This just adds the new code, I'll switch to using it and remove the old code in a followup.
- Loading branch information
Showing
38 changed files
with
2,588 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
############################################################################### | ||
# @generated | ||
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To | ||
# regenerate this file, run the following: | ||
# | ||
# bazel run @//deps/rust:crates_vendor | ||
############################################################################### | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "inflector", | ||
srcs = glob( | ||
include = ["**/*.rs"], | ||
allow_empty = True, | ||
), | ||
compile_data = glob( | ||
include = ["**"], | ||
allow_empty = True, | ||
exclude = [ | ||
"**/* *", | ||
".tmp_git_root/**/*", | ||
"BUILD", | ||
"BUILD.bazel", | ||
"WORKSPACE", | ||
"WORKSPACE.bazel", | ||
], | ||
), | ||
crate_root = "src/lib.rs", | ||
edition = "2015", | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"cargo-bazel", | ||
"crate-name=Inflector", | ||
"manual", | ||
"noclippy", | ||
"norustfmt", | ||
], | ||
version = "0.11.4", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
############################################################################### | ||
# @generated | ||
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To | ||
# regenerate this file, run the following: | ||
# | ||
# bazel run @//deps/rust:crates_vendor | ||
############################################################################### | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "aho_corasick", | ||
srcs = glob( | ||
include = ["**/*.rs"], | ||
allow_empty = True, | ||
), | ||
compile_data = glob( | ||
include = ["**"], | ||
allow_empty = True, | ||
exclude = [ | ||
"**/* *", | ||
".tmp_git_root/**/*", | ||
"BUILD", | ||
"BUILD.bazel", | ||
"WORKSPACE", | ||
"WORKSPACE.bazel", | ||
], | ||
), | ||
crate_features = [ | ||
"default", | ||
"perf-literal", | ||
"std", | ||
], | ||
crate_root = "src/lib.rs", | ||
edition = "2021", | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"cargo-bazel", | ||
"crate-name=aho-corasick", | ||
"manual", | ||
"noclippy", | ||
"norustfmt", | ||
], | ||
version = "1.1.3", | ||
deps = [ | ||
"@crates_vendor__memchr-2.7.4//:memchr", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
############################################################################### | ||
# @generated | ||
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To | ||
# regenerate this file, run the following: | ||
# | ||
# bazel run @//deps/rust:crates_vendor | ||
############################################################################### | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "bstr", | ||
srcs = glob( | ||
include = ["**/*.rs"], | ||
allow_empty = True, | ||
), | ||
compile_data = glob( | ||
include = ["**"], | ||
allow_empty = True, | ||
exclude = [ | ||
"**/* *", | ||
".tmp_git_root/**/*", | ||
"BUILD", | ||
"BUILD.bazel", | ||
"WORKSPACE", | ||
"WORKSPACE.bazel", | ||
], | ||
), | ||
crate_features = [ | ||
"alloc", | ||
"default", | ||
"std", | ||
"unicode", | ||
], | ||
crate_root = "src/lib.rs", | ||
edition = "2021", | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"cargo-bazel", | ||
"crate-name=bstr", | ||
"manual", | ||
"noclippy", | ||
"norustfmt", | ||
], | ||
version = "1.10.0", | ||
deps = [ | ||
"@crates_vendor__memchr-2.7.4//:memchr", | ||
"@crates_vendor__regex-automata-0.4.8//:regex_automata", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
############################################################################### | ||
# @generated | ||
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To | ||
# regenerate this file, run the following: | ||
# | ||
# bazel run @//deps/rust:crates_vendor | ||
############################################################################### | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "castaway", | ||
srcs = glob( | ||
include = ["**/*.rs"], | ||
allow_empty = True, | ||
), | ||
compile_data = glob( | ||
include = ["**"], | ||
allow_empty = True, | ||
exclude = [ | ||
"**/* *", | ||
".tmp_git_root/**/*", | ||
"BUILD", | ||
"BUILD.bazel", | ||
"WORKSPACE", | ||
"WORKSPACE.bazel", | ||
], | ||
), | ||
crate_features = [ | ||
"alloc", | ||
], | ||
crate_root = "src/lib.rs", | ||
edition = "2018", | ||
proc_macro_deps = [ | ||
"@crates_vendor__rustversion-1.0.18//:rustversion", | ||
], | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"cargo-bazel", | ||
"crate-name=castaway", | ||
"manual", | ||
"noclippy", | ||
"norustfmt", | ||
], | ||
version = "0.2.3", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
############################################################################### | ||
# @generated | ||
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To | ||
# regenerate this file, run the following: | ||
# | ||
# bazel run @//deps/rust:crates_vendor | ||
############################################################################### | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "compact_str", | ||
srcs = glob( | ||
include = ["**/*.rs"], | ||
allow_empty = True, | ||
), | ||
compile_data = glob( | ||
include = ["**"], | ||
allow_empty = True, | ||
exclude = [ | ||
"**/* *", | ||
".tmp_git_root/**/*", | ||
"BUILD", | ||
"BUILD.bazel", | ||
"WORKSPACE", | ||
"WORKSPACE.bazel", | ||
], | ||
), | ||
crate_features = [ | ||
"default", | ||
"std", | ||
], | ||
crate_root = "src/lib.rs", | ||
edition = "2021", | ||
proc_macro_deps = [ | ||
"@crates_vendor__rustversion-1.0.18//:rustversion", | ||
], | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"cargo-bazel", | ||
"crate-name=compact_str", | ||
"manual", | ||
"noclippy", | ||
"norustfmt", | ||
], | ||
version = "0.8.0", | ||
deps = [ | ||
"@crates_vendor__castaway-0.2.3//:castaway", | ||
"@crates_vendor__cfg-if-1.0.0//:cfg_if", | ||
"@crates_vendor__itoa-1.0.11//:itoa", | ||
"@crates_vendor__ryu-1.0.18//:ryu", | ||
"@crates_vendor__static_assertions-1.1.0//:static_assertions", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
############################################################################### | ||
# @generated | ||
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To | ||
# regenerate this file, run the following: | ||
# | ||
# bazel run @//deps/rust:crates_vendor | ||
############################################################################### | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "either", | ||
srcs = glob( | ||
include = ["**/*.rs"], | ||
allow_empty = True, | ||
), | ||
compile_data = glob( | ||
include = ["**"], | ||
allow_empty = True, | ||
exclude = [ | ||
"**/* *", | ||
".tmp_git_root/**/*", | ||
"BUILD", | ||
"BUILD.bazel", | ||
"WORKSPACE", | ||
"WORKSPACE.bazel", | ||
], | ||
), | ||
crate_features = [ | ||
"use_std", | ||
], | ||
crate_root = "src/lib.rs", | ||
edition = "2018", | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"cargo-bazel", | ||
"crate-name=either", | ||
"manual", | ||
"noclippy", | ||
"norustfmt", | ||
], | ||
version = "1.13.0", | ||
) |
Oops, something went wrong.