Skip to content

Commit 9429d50

Browse files
committed
...
1 parent 894c3b1 commit 9429d50

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

misc/content/2023/04/ruff-is-an-extremely-fast-python-linter-written-in-rust/ruff-is-an-extremely-fast-python-linter-written-in-rust.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Status: published
22
Date: 2023-04-01 18:21:35
3-
Modified: 2025-05-28 15:46:20
3+
Modified: 2025-06-13 23:35:33
44
Author: Benjamin Du
55
Slug: ruff-is-an-extremely-fast-python-linter-written-in-rust
66
Title: Ruff Is An Extremely Fast Python Linter Written in Rust
@@ -9,12 +9,21 @@ Tags: Computer Science, programming, Python, Ruff, lint, linter
99

1010
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
1111

12-
The most convenient way to use ruff is via `uvx`.
12+
## Use ruff In a uv Managed Python Project
1313

14-
```bash
15-
uvx ruff check /some/path
16-
uvx ruff format /some/path
17-
```
14+
uv run ruff check
15+
uv run ruff format .
16+
17+
## Use ruff Standalone
18+
19+
The most convenient way to use run ruff standalone is via `uvx`.
20+
21+
uvx ruff check /some/path
22+
uvx ruff format /some/path
23+
24+
## Format Python Scripts with Indention Width = 2
25+
26+
ruff format --config indent-width=2 path/to/file.py
1827

1928
## References
2029

0 commit comments

Comments
 (0)