Skip to content

Commit 33a8e64

Browse files
authored
Include installation steps for Ruff in guide
Added installation instructions for Ruff linter.
1 parent daff897 commit 33a8e64

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/guides/python/lint-format-typing.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ In this section, you'll learn how to set up code quality tools for your Python a
2424

2525
Ruff is an extremely fast Python linter and formatter written in Rust. It replaces multiple tools like flake8, isort, and black with a single unified tool.
2626

27+
Before using Ruff, install it in your Python environment:
28+
29+
```bash
30+
pip install ruff
31+
```
32+
33+
If you're using a virtual environment, make sure it is activated so the `ruff` command is available when you run the commands below.
34+
2735
Create a `pyproject.toml` file:
2836

2937
```toml
@@ -119,4 +127,4 @@ These tools help maintain code quality and catch errors early in development.
119127

120128
- [Configure GitHub Actions](configure-github-actions.md) to run these checks automatically
121129
- Customize linting rules to match your team's style preferences
122-
- Explore advanced type checking features
130+
- Explore advanced type checking features

0 commit comments

Comments
 (0)