mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Enable excludes (#18)
This commit is contained in:
parent
7359e862c1
commit
b11a7eefa3
10 changed files with 140 additions and 83 deletions
|
@ -55,7 +55,10 @@ mod tests {
|
|||
fn duplicate_argument_name() -> Result<()> {
|
||||
let actual = check_path(
|
||||
&Path::new("./resources/test/src/duplicate_argument_name.py"),
|
||||
&settings::Settings { line_length: 88 },
|
||||
&settings::Settings {
|
||||
line_length: 88,
|
||||
exclude: vec![],
|
||||
},
|
||||
&cache::Mode::None,
|
||||
)?;
|
||||
let expected = vec![
|
||||
|
@ -87,7 +90,10 @@ mod tests {
|
|||
fn f_string_missing_placeholders() -> Result<()> {
|
||||
let actual = check_path(
|
||||
&Path::new("./resources/test/src/f_string_missing_placeholders.py"),
|
||||
&settings::Settings { line_length: 88 },
|
||||
&settings::Settings {
|
||||
line_length: 88,
|
||||
exclude: vec![],
|
||||
},
|
||||
&cache::Mode::None,
|
||||
)?;
|
||||
let expected = vec![
|
||||
|
@ -119,7 +125,10 @@ mod tests {
|
|||
fn if_tuple() -> Result<()> {
|
||||
let actual = check_path(
|
||||
&Path::new("./resources/test/src/if_tuple.py"),
|
||||
&settings::Settings { line_length: 88 },
|
||||
&settings::Settings {
|
||||
line_length: 88,
|
||||
exclude: vec![],
|
||||
},
|
||||
&cache::Mode::None,
|
||||
)?;
|
||||
let expected = vec![
|
||||
|
@ -146,7 +155,10 @@ mod tests {
|
|||
fn import_star_usage() -> Result<()> {
|
||||
let actual = check_path(
|
||||
&Path::new("./resources/test/src/import_star_usage.py"),
|
||||
&settings::Settings { line_length: 88 },
|
||||
&settings::Settings {
|
||||
line_length: 88,
|
||||
exclude: vec![],
|
||||
},
|
||||
&cache::Mode::None,
|
||||
)?;
|
||||
let expected = vec![
|
||||
|
@ -173,7 +185,10 @@ mod tests {
|
|||
fn line_too_long() -> Result<()> {
|
||||
let actual = check_path(
|
||||
&Path::new("./resources/test/src/line_too_long.py"),
|
||||
&settings::Settings { line_length: 88 },
|
||||
&settings::Settings {
|
||||
line_length: 88,
|
||||
exclude: vec![],
|
||||
},
|
||||
&cache::Mode::None,
|
||||
)?;
|
||||
let expected = vec![Message {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue