You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guides/python/lint-format-typing.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Linting, Formatting and Type Checking for Python
3
-
linkTitle: Linting and Typing
2
+
title: Linting, formatting, and type checking for Python
3
+
linkTitle: Linting and typing
4
4
weight: 25
5
5
keywords: Python, linting, formatting, type checking, ruff, pyright
6
6
description: Learn how to set up linting, formatting and type checking for your Python application.
@@ -20,7 +20,7 @@ In this section, you'll learn how to set up code quality tools for your Python a
20
20
- Static type checking with Pyright
21
21
- Automating checks with pre-commit hooks
22
22
23
-
## Linting and Formatting with Ruff
23
+
## Linting and formatting with Ruff
24
24
25
25
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.
26
26
@@ -64,7 +64,7 @@ ruff check --fix .
64
64
ruff format .
65
65
```
66
66
67
-
## Type Checking with Pyright
67
+
## Type checking with Pyright
68
68
69
69
Pyright is a fast static type checker for Python that works well with modern Python features.
70
70
@@ -87,10 +87,10 @@ pyright
87
87
88
88
## Setting up pre-commit hooks
89
89
90
-
Pre-commit hooks automatically run checks before each commit. in `.pre-commit-config.yaml` sets up Ruff:
90
+
Pre-commit hooks automatically run checks before each commit. in `.pre-commit-config.yaml`snippet sets up Ruff:
0 commit comments