From 2704dc796b49b4c5d348c92ba14ef1cfd908e7f1 Mon Sep 17 00:00:00 2001 From: Gerhard van Andel <10352022+GerhardOfRivia@users.noreply.github.com> Date: Tue, 1 Nov 2022 12:42:48 -0600 Subject: [PATCH 1/1] Update docs to include pycodestyle (#3369) * Add pycodestyle to using_black_with_other_tools.md --- docs/guides/using_black_with_other_tools.md | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/guides/using_black_with_other_tools.md b/docs/guides/using_black_with_other_tools.md index 1d380bd..7bc0726 100644 --- a/docs/guides/using_black_with_other_tools.md +++ b/docs/guides/using_black_with_other_tools.md @@ -252,3 +252,35 @@ max-line-length = "88" ``` + +### pycodestyle + +[pycodestyle](https://pycodestyle.pycqa.org/) is also a code linter like Flake8. + +#### Configuration + +``` +max_line_length = 88 +ignore = E203 +``` + +#### Why those options above? + +pycodestyle should be configured to only complain about lines that surpass `88` +characters via `max_line_length = 88`. + +See +[Why are Flake8’s E203 and W503 violated?](https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated) + +#### Formats + +
+setup.cfg + +```cfg +[pycodestyle] +ignore = E203 +max_line_length = 88 +``` + +
-- 2.39.5