From e27c0a03d5c5163bfd9df624368d458041c87521 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sat, 6 May 2023 09:57:49 +0200 Subject: Superseding flake8-colors - considering that deprecated From flake8 5.0.0 on, flake8 natively supports `--color` [^1], rendering the installation of flake8-colors obsolete. (Kudos so far for the nice work, nonetheless.) Debian 12 (frozen and one month before release at the point of this update) moved flake8 from 3.8.4 to 5.0.4, so I'm moving along. (Also, no need for venv magic anymore.) [^1] [flake8 changelog for 5.0.0](https://flake8.pycqa.org/en/latest/release-notes/5.0.0.html) --- .flake8 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index d236572..32eea63 100644 --- a/.flake8 +++ b/.flake8 @@ -9,4 +9,6 @@ max-line-length = 100 # Do test for docstrings. Laziness sucks. doctests = True # use only if flake8-colors is installed: -format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}:\\t${red_bold}%(code)s${reset} %(text)s +# format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}:\\t${red_bold}%(code)s${reset} %(text)s +# Superseding flake8-colors: +format = %(cyan)s%(path)s%(reset)s:%(yellow)s%(bold)s%(row)d%(reset)s:%(green)s%(bold)s%(col)d%(reset)s: %(red)s%(bold)s%(code)s%(reset)s %(text)s -- cgit v1.2.3