Skip to content

Commit

Permalink
Disable B028 flake8-bugbear lint check
Browse files Browse the repository at this point in the history
The B028 check is going to be made optional/opinionated in
flake8-bugbear. See PyCQA/flake8-bugbear#333

Fix color formatting on flake8 style offenses.

Signed-off-by: Jacopo De Amicis <[email protected]>
  • Loading branch information
jdeamicis committed Feb 1, 2023
1 parent 44d2c1c commit 50fd90c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ ignore =
# D103: Missing docstring in public function
D103,
# D104: Missing docstring in public package
D104
D104,
# D107: Missing docstring in __init__
D107,
# W503: line break before binary operator => Conflicts with black style.
W503,
# N818: exception name should be named with an Error suffix
N818,
# B028: Consider replacing f"'{foo}'" with f"{foo!r}".
# Currently being disabled by flake8-bugbear. See https://github.com/PyCQA/flake8-bugbear/pull/333
B028
exclude =
.tox,
.git,
Expand All @@ -34,4 +37,4 @@ max-complexity = 10
max-line-length = 120
import-order-style = google
application-import-names = flake8
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
format = %(cyan)s%(path)s%(reset)s:%(bold)s%(yellow)s%(row)d%(reset)s:%(bold)s%(green)s%(col)d%(reset)s: %(bold)s%(red)s%(code)s%(reset)s %(text)s

0 comments on commit 50fd90c

Please sign in to comment.