-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
ryecharm run ruff on rst file #5
Comments
I'm afraid I can't reproduce the problem in any running mode. What are your settings? Have you tried restarting the IDE and/or your computer? If restarting doesn't work, could you check the logs (Ctrl + Shift + A → Show Log in Explorer) and let me see its content? An email is fine if you don't want to post it publicly: |
|
my ruff config: [tool.ruff]
target-version = "py38"
extend-exclude = ["docs"]
line-length = 120
[tool.ruff.lint]
select = [
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"W",
"BLE",
"EXE",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"YTT",
"UP",
"FA100",
"FA102"
]
extend-fixable = ['UP']
ignore = [
'PLR0911',
'INP001',
'N806',
'N802',
'N803',
'E501',
'BLE001',
'RUF002',
'S301',
'S314',
'S101',
'N815',
'S104',
'C901',
'ISC003',
'PLR0913',
'RUF001',
'SIM108',
'TCH003',
'RUF003',
'RET504',
'TCH001',
'TRY300',
'TRY003',
'TRY201',
'TRY301',
'PLR0912',
'PLR0915',
'PLR2004',
'PGH003',
] |
I'm not sure if this help, but I'm editing doc files in this git repo https://github.com/trim21/transmission-rpc |
Thanks. I can reproduce it now. Unbelievable as it is, RyeCharm is working correctly. It is supposed to run Ruff on any Python file; a file is considered a Python file if it passes at least one of the following two criteria:
I always thought The annotator was indeed passed a I'll add an extra check, but this is more of a design bug on PyCharm's side (see also PY-73814). |
At least ruff |
The file's content is passed via standard input (note the Anyway, try the build out and let me know if it works. |
I think it works |
ruff will ignore exclude config if it's called with |
I'm guessing the exclude config would work if I use LSP instead of cli? |
Haven't rechecked, but that's probably correct. |
Yes files get excluded as expected in LSP mode. |
I suppose this issue is solved then. If nothing changes I'll merge the fix tomorrow. |
thanks |
What happened?
ryecharm run ruff on rst file and report syntax error
looks like it run ruff on rst file directly
ruff check .\docs\enum.rst
Steps to reproduce
create a rst file and open it with ryecharm plugin
Relevant log output or stack trace
No response
Operating system
None
The text was updated successfully, but these errors were encountered: