Skip to content

Commit 2704dc7

Browse files
Update docs to include pycodestyle (#3369)
* Add pycodestyle to using_black_with_other_tools.md
1 parent f677914 commit 2704dc7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/guides/using_black_with_other_tools.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,35 @@ max-line-length = "88"
252252
```
253253

254254
</details>
255+
256+
### pycodestyle
257+
258+
[pycodestyle](https://pycodestyle.pycqa.org/) is also a code linter like Flake8.
259+
260+
#### Configuration
261+
262+
```
263+
max_line_length = 88
264+
ignore = E203
265+
```
266+
267+
#### Why those options above?
268+
269+
pycodestyle should be configured to only complain about lines that surpass `88`
270+
characters via `max_line_length = 88`.
271+
272+
See
273+
[Why are Flake8’s E203 and W503 violated?](https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated)
274+
275+
#### Formats
276+
277+
<details>
278+
<summary>setup.cfg</summary>
279+
280+
```cfg
281+
[pycodestyle]
282+
ignore = E203
283+
max_line_length = 88
284+
```
285+
286+
</details>

0 commit comments

Comments
 (0)