[package]
edition = "2021"
rust-version = "1.88"
name = "bonsai-ninja-lang-python"
version = "0.2.1"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Python language adapter."
homepage = "https://github.com/gromhacks/bonsai-ninja"
readme = "README.md"
keywords = [
"static-analysis",
"code-intelligence",
"security",
"tree-sitter",
"developer-tools",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT"
repository = "https://github.com/gromhacks/bonsai-ninja"
[lib]
name = "bonsai_lang_python"
path = "src/lib.rs"
[[test]]
name = "call_argument_places"
path = "tests/call_argument_places.rs"
[[test]]
name = "character_constraints"
path = "tests/character_constraints.rs"
[[test]]
name = "comprehension_calls"
path = "tests/comprehension_calls.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "constant_reflection"
path = "tests/constant_reflection.rs"
[[test]]
name = "constructor_names"
path = "tests/constructor_names.rs"
[[test]]
name = "docstrings"
path = "tests/docstrings.rs"
[[test]]
name = "dunder_all"
path = "tests/dunder_all.rs"
[[test]]
name = "executor_calls"
path = "tests/executor_calls.rs"
[[test]]
name = "generator_send"
path = "tests/generator_send.rs"
[[test]]
name = "iterable_yield_bindings"
path = "tests/iterable_yield_bindings.rs"
[[test]]
name = "membership_facts"
path = "tests/membership_facts.rs"
[[test]]
name = "static_scalar_facts"
path = "tests/static_scalar_facts.rs"
[[test]]
name = "string_composition_facts"
path = "tests/string_composition_facts.rs"
[dependencies.bonsai_common]
version = "=0.2.1"
package = "bonsai-ninja-common"
[dependencies.bonsai_lang_api]
version = "=0.2.1"
package = "bonsai-ninja-lang-api"
[dependencies.tree-sitter]
version = "0.26"
[dev-dependencies]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_match = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
elidable_lifetime_names = "allow"
explicit_iter_loop = "allow"
format_in_format_args = "allow"
format_push_string = "allow"
if_not_else = "allow"
items_after_statements = "allow"
manual_find = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_lifetimes = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
only_used_in_recursion = "allow"
option_if_let_else = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unreachable_pub = "deny"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1