Skip to content

Commit 8210776

Browse files
committed
Fix string formatting to make black --experimental-string-processing happy
- Also add `--experimental-string-processing` to CI
1 parent 09ca6c0 commit 8210776

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
3535
- name: Check formatting
3636
run: |
37-
black --check .
37+
black --check --experimental-string-processing .

bugbear.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -793,9 +793,10 @@ def visit(self, node):
793793

794794
B904 = Error(
795795
message=(
796-
"B904 Within an `except` clause, raise exceptions with `raise ... from err` "
797-
"or `raise ... from None` to distinguish them from errors in exception handling. "
798-
"See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details."
796+
"B904 Within an `except` clause, raise exceptions with `raise ... from err` or"
797+
" `raise ... from None` to distinguish them from errors in exception handling. "
798+
" See https://docs.python.org/3/tutorial/errors.html#exception-chaining for"
799+
" details."
799800
)
800801
)
801802

0 commit comments

Comments
 (0)