mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:16 +00:00
[ty] Move respect-ignore-files
under src
section (#18322)
This commit is contained in:
parent
4e68dd96a6
commit
62ef96f51e
6 changed files with 57 additions and 50 deletions
|
@ -4,7 +4,7 @@ use clap::error::ErrorKind;
|
|||
use clap::{ArgAction, ArgMatches, Error, Parser};
|
||||
use ruff_db::system::SystemPathBuf;
|
||||
use ty_project::combine::Combine;
|
||||
use ty_project::metadata::options::{EnvironmentOptions, Options, TerminalOptions};
|
||||
use ty_project::metadata::options::{EnvironmentOptions, Options, SrcOptions, TerminalOptions};
|
||||
use ty_project::metadata::value::{RangedValue, RelativePathBuf, ValueSource};
|
||||
use ty_python_semantic::lint;
|
||||
|
||||
|
@ -184,9 +184,11 @@ impl CheckCommand {
|
|||
.map(|output_format| RangedValue::cli(output_format.into())),
|
||||
error_on_warning: self.error_on_warning,
|
||||
}),
|
||||
src: Some(SrcOptions {
|
||||
respect_ignore_files,
|
||||
..SrcOptions::default()
|
||||
}),
|
||||
rules,
|
||||
respect_ignore_files,
|
||||
..Default::default()
|
||||
};
|
||||
// Merge with options passed in via --config
|
||||
options.combine(self.config.into_options().unwrap_or_default())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue