From 3990fd4fda2f8ce8eee93394ea7ae9f34b0ce94a Mon Sep 17 00:00:00 2001 From: Matt Zimmer Date: Sat, 13 Jan 2024 20:57:50 -0500 Subject: [PATCH] Make line length consistent across code formatters We've been using Ruff for formatting, which defaults to 88 characters for its max line length. So we don't end up with a lot of whitespace changes for existing files and contention between Ruff and Editor Config, this commit set the line length for Editor Config to match Ruff's default. In addition, the PEP 8 standard of 80 characters is too restrictive and does not make much sense given modern displays. It probably reflects what made sense in 2001 when it was adopted. --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 4bdb06e..ce7bd9b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,7 +15,7 @@ charset = utf-8 # Max line length for python files [*.py] -max_line_length = 80 +max_line_length = 88 # Tab indentation for Makefile (no size specified) [Makefile] @@ -23,4 +23,4 @@ indent_style = tab [*.sh] indent_style = space -indent_size = 2 \ No newline at end of file +indent_size = 2