Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with ruff 0.1.0 #303

Closed
DetachHead opened this issue Oct 16, 2023 · 3 comments · Fixed by #305
Closed

doesn't work with ruff 0.1.0 #303

DetachHead opened this issue Oct 16, 2023 · 3 comments · Fixed by #305

Comments

@DetachHead
Copy link
Contributor

0.1.0 removes the --format argument in favor of --output-format: https://github.com/astral-sh/ruff/releases/tag/v0.1.0

the following error now appears in the log:

2023-10-17 08:08:12.239 [info] error: unexpected argument '--format' found

  tip: to pass '--format' as a value, use '-- --format'

Usage: ruff.exe check <FILES|--fix|--no-fix|--unsafe-fixes|--no-unsafe-fixes|--show-source|--no-show-source|--show-fixes|--no-show-fixes|--diff|--watch|--fix-only|--no-fix-only|--ignore-noqa|--output-format <OUTPUT_FORMAT>|--output-file <OUTPUT_FILE>|--target-version <TARGET_VERSION>|--preview|--no-preview|--config <CONFIG>|--select <RULE_CODE>|--ignore <RULE_CODE>|--extend-select <RULE_CODE>|--extend-ignore <RULE_CODE>|--per-file-ignores <PER_FILE_IGNORES>|--extend-per-file-ignores <EXTEND_PER_FILE_IGNORES>|--exclude <FILE_PATTERN>|--extend-exclude <FILE_PATTERN>|--fixable <RULE_CODE>|--unfixable <RULE_CODE>|--extend-fixable <RULE_CODE>|--extend-unfixable <RULE_CODE>|--respect-gitignore|--no-respect-gitignore|--force-exclude|--no-force-exclude|--line-length <LINE_LENGTH>|--dummy-variable-rgx <DUMMY_VARIABLE_RGX>|--no-cache|--isolated|--cache-dir <CACHE_DIR>|--stdin-filename <STDIN_FILENAME>|--exit-zero|--exit-non-zero-on-fix|--statistics|--add-noqa|--show-files|--show-settings|--ecosystem-ci> <--verbose|--quiet|--silent>

For more information, try '--help'.
@zanieb
Copy link
Member

zanieb commented Oct 16, 2023

Thanks for the issue!

I believe this should be resolved by astral-sh/ruff-lsp#266 but it might need to be released still

@zanieb
Copy link
Member

zanieb commented Oct 16, 2023

Should be available now. Please let me know if you have any more issues!

@DetachHead
Copy link
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants