mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-19 02:55:20 +00:00
Rename ruff_python_semantic's Context
struct to SemanticModel
(#4565)
This commit is contained in:
parent
3238743a7b
commit
19c4b7bee6
304 changed files with 1253 additions and 1142 deletions
|
@ -7,6 +7,7 @@ use std::{fs, str};
|
|||
use anyhow::{bail, Context, Result};
|
||||
use clap::CommandFactory;
|
||||
use pretty_assertions::StrComparison;
|
||||
|
||||
use ruff_cli::args;
|
||||
|
||||
use crate::generate_all::{Mode, REGENERATE_ALL_COMMAND};
|
||||
|
@ -119,10 +120,12 @@ fn check_help_text() -> String {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{main, Args};
|
||||
use crate::generate_all::Mode;
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::generate_all::Mode;
|
||||
|
||||
use super::{main, Args};
|
||||
|
||||
#[test]
|
||||
fn test_generate_json_schema() -> Result<()> {
|
||||
main(&Args { mode: Mode::Check })
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::generate_all::{Mode, REGENERATE_ALL_COMMAND};
|
||||
use anyhow::{bail, Result};
|
||||
use pretty_assertions::StrComparison;
|
||||
use ruff::settings::options::Options;
|
||||
use schemars::schema_for;
|
||||
|
||||
use ruff::settings::options::Options;
|
||||
|
||||
use crate::generate_all::{Mode, REGENERATE_ALL_COMMAND};
|
||||
use crate::ROOT_DIR;
|
||||
|
||||
#[derive(clap::Args)]
|
||||
|
@ -48,10 +49,12 @@ pub(crate) fn main(args: &Args) -> Result<()> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{main, Args};
|
||||
use crate::generate_all::Mode;
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::generate_all::Mode;
|
||||
|
||||
use super::{main, Args};
|
||||
|
||||
#[test]
|
||||
fn test_generate_json_schema() -> Result<()> {
|
||||
main(&Args { mode: Mode::Check })
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
//! Generate a Markdown-compatible listing of configuration options.
|
||||
use itertools::Itertools;
|
||||
|
||||
use ruff::settings::options::Options;
|
||||
use ruff::settings::options_base::{OptionEntry, OptionField};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue