Skip to main content

dissolve_python/
lib.rs

1// Copyright (C) 2024 Jelmer Vernooij <jelmer@samba.org>
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15pub mod ast_transformer;
16mod ast_utils;
17pub mod ast_visitor;
18pub mod builder;
19pub mod checker;
20pub mod config;
21pub mod core;
22pub mod dependency_collector;
23pub mod domain_types;
24pub mod error;
25pub mod function_refactoring;
26pub mod migrate_stub;
27pub use migrate_stub as migrate_ruff; // Temporary alias until migration is complete
28pub mod mypy_lsp;
29pub mod optimizations;
30pub mod optimized_visitor;
31pub mod performance;
32pub mod pyright_lsp;
33pub mod remover;
34pub mod ruff_parser;
35pub mod rustpython_visitor;
36pub mod scanner;
37pub mod stub_collector; // Temporary stub
38#[cfg(test)]
39pub mod test_isolation;
40pub mod type_introspection_context;
41pub mod types;
42pub mod unified_visitor;
43
44pub mod concurrent_lsp;
45
46pub use checker::CheckResult;
47pub use core::*;
48pub use dependency_collector::{
49    collect_deprecated_from_dependencies, collect_deprecated_from_dependencies_with_paths,
50};
51pub use migrate_stub::check_file;
52pub use remover::remove_from_file;
53pub use scanner::*;
54pub use stub_collector::RuffDeprecatedFunctionCollector; // Temporary export
55pub use types::{TypeIntrospectionMethod, UserResponse};
56
57// ConcurrentTypeIntrospectionContext is no longer needed - we use sync concurrent client in tests
58
59#[cfg(test)]
60mod tests;
61
62#[cfg(test)]
63mod test_import_tracking;
64
65#[cfg(test)]
66pub mod test_utils;
67
68#[cfg(test)]
69mod test_setup;