Skip to content

Commit

Permalink
chore: reconfigure ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Oct 21, 2024
1 parent 299d927 commit a8e8b30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djlint/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def build_output(
next(iter(error.keys())), config.project_root.resolve()
)

if "{filename}" not in config.linter_output_format and not config.stdin:
if "{filename}" not in config.linter_output_format and not config.stdin: # noqa: RUF027
echo(
f"{Fore.GREEN}{Style.BRIGHT}\n{filename}\n{Style.DIM}"
+ "".join("─" for _ in range(1, width))
Expand Down
3 changes: 2 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ ignore = [
"RUF001",
"RUF002",
"RUF003",
"RUF027",
"S110",
"S112",
"S308",
"S311",
"S404",
"SIM105",
"TD002",
"TD003",
"TID252",
"TRY400",
]
Expand Down

0 comments on commit a8e8b30

Please sign in to comment.