From f8e572e843b037dea9c79bcecd7b9626b2b4ceba Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sat, 23 Aug 2025 14:01:00 -0400 Subject: [PATCH] [5.2.x] Removed reference to flake8 file exclusions. Obsolete since 41384812efe209c8295a50d78b45e0ffb2992436. (six was removed in 9285926295fbfc86b70e7be8d595d4cfbe7895b8.) Backport of 165ad74c578f94f962624a40dff14e1b2e23a1f8 from main --- docs/internals/contributing/writing-code/coding-style.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index c7502985b6..be3118f96e 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -46,11 +46,9 @@ Python style * Unless otherwise specified, follow :pep:`8`. Use :pypi:`flake8` to check for problems in this area. Note that our - ``.flake8`` file contains some excluded files (deprecated modules we don't - care about cleaning up and some third-party code that Django vendors) as well - as some excluded errors that we don't consider as gross violations. Remember - that :pep:`8` is only a guide, so respect the style of the surrounding code - as a primary goal. + ``.flake8`` file excludes some errors that we don't consider as gross + violations. Remember that :pep:`8` is only a guide, so respect the style of + the surrounding code as a primary goal. An exception to :pep:`8` is our rules on line lengths. Don't limit lines of code to 79 characters if it means the code looks significantly uglier or is