git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormail_redacted_for_web 2023-05-06 09:57:49 +0200
committermail_redacted_for_web 2023-05-06 09:57:49 +0200
commite27c0a03d5c5163bfd9df624368d458041c87521 (patch)
tree48780a66097e10c2e3083e8020d9447d93ce6b86
parent10aabab8912182302ae549e83f9cae6a245c4e4d (diff)
downloaddotfiles-e27c0a03d5c5163bfd9df624368d458041c87521.tar.bz2
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)
-rw-r--r--.flake84
1 files changed, 3 insertions, 1 deletions
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