Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a linting integrations section to docs (#9076)
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Flake8 plugin | ||
|
||
If using Flake8 in your project, a [plugin](https://pypi.org/project/flake8-pydantic/) is available | ||
and can be installed using the following: | ||
|
||
```bash | ||
pip install flake8-pydantic | ||
``` | ||
|
||
The lint errors provided by this plugin are namespaced under the `PYDXXX` code. To ignore some unwanted | ||
rules, the Flake8 configuration can be adapted: | ||
|
||
```ini | ||
[flake8] | ||
extend-ignore = PYD001,PYD002 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters