diff --git a/.lintrunner.toml b/.lintrunner.toml index f899a9e..f6027da 100644 --- a/.lintrunner.toml +++ b/.lintrunner.toml @@ -344,7 +344,7 @@ init_command = [ 'run', 'pip_init', '--dry-run={{DRYRUN}}', - 'ruff==0.0.262', + 'ruff==0.0.291', ] is_formatter = true diff --git a/lintrunner_adapters/adapters/ruff_linter.py b/lintrunner_adapters/adapters/ruff_linter.py index 8d445a8..adcde7f 100644 --- a/lintrunner_adapters/adapters/ruff_linter.py +++ b/lintrunner_adapters/adapters/ruff_linter.py @@ -101,7 +101,7 @@ def check_files( "ruff", "--exit-zero", "--quiet", - "--format=json", + "--output-format=json", *([f"--config={config}"] if config else []), *filenames, ], @@ -238,7 +238,7 @@ def check_file_for_fixes( def main() -> None: parser = argparse.ArgumentParser( - description=f"Ruff linter. Linter code: {LINTER_CODE}. Use with RUFF-FIX to auto-fix issues.", + description=f"Ruff linter with auto-fix support. Linter code: {LINTER_CODE}.", fromfile_prefix_chars="@", ) parser.add_argument( diff --git a/lintrunner_adapters/adapters/rustfmt_linter.py b/lintrunner_adapters/adapters/rustfmt_linter.py index a61db49..6de09fb 100644 --- a/lintrunner_adapters/adapters/rustfmt_linter.py +++ b/lintrunner_adapters/adapters/rustfmt_linter.py @@ -147,8 +147,8 @@ def check_file( replacement=None, description=( "Possible rustfmt bug. " - "rustfmt returned error output but didn't fail:\n{}" - ).format(clean_err), + f"rustfmt returned error output but didn't fail:\n{clean_err}" + ), ) ] diff --git a/pyproject.toml b/pyproject.toml index 49ed87c..a93d7d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ warn_unused_ignores = false [tool.poetry] name = "lintrunner-adapters" -version = "0.9.0" +version = "0.10.0" description = "Adapters and tools for lintrunner" authors = ["Justin Chu "] license = "MIT"