-
# Python 開發:Ruff Linter、Formatter 介紹 + 設定教學 - Code and Me
本文介紹 Ruff 這個高效的 Python linter、formatter,並示範如何在 VS Code、pre-commit 中設定 Ruff,附程式碼。
[https://blog.kyomind.tw/ruff/](https://blog.kyomind.tw/ruf…
-
![image](https://github.com/user-attachments/assets/7a6fd53f-5c6a-43c6-9841-a0854024c7da)
this speaks for itself.
-
### System info:
Host/Remote OS Name: Microsoft Windows 10 Enterprise
Host/Remote OS Version: 10.0.19044 N/A Build 19044
VSCode version: 1.92.1 (user setup)
Ru…
-
i'm not sure what's causing this, but for some reason all of my language servers are crashing with strange errors when running from a venv created by uv (tested with both ruff and basedpyright languag…
-
I just updated from ruff 0.5.0 to 0.6.1, and had to add an ignore for A005 so that ruff check would continue to pass:
https://github.com/jab/bidict/commit/57a0d0b592c2db2d8114452bb6615dcb1d64876e
…
-
Hey, I have some rules with autofix available that are correctly fixed when running the command `Ruff: Fix all auto-fixable problems`, but they are not fixed when saving, despite having the settings …
-
**Describe the bug**
We're using an env var to pass along a value to the ruff CLI. With pants 2.22.0.rc2, I'm seeing a mismatch like:
```
[WARN] Value mismatch for the option `args` in scope [r…
-
**Is your feature request related to a problem? Please describe.**
Now that we are enforcing c++ formatting rules, maybe it's time to think about Python formatting as well.
**Describe the soluti…
tvami updated
15 hours ago
-
Keywords: forward reference, pyupgrade, UP007
Python 3.12, also 3.10
Ruff 0.6.1, also 0.5.7
Command: `ruff check .`
Code:
Python file
```py
x: Optional['Something'] # expect UP007 to tri…
-
I found there was some leftover py2k code in a project that UP rules would not catch because it just matches sys.version_info as a tuple. If you just check for the 1st element, which is kinda common i…