Skip to content

Commit

Permalink
Fix string formatting to make black `--experimental-string-processing…
Browse files Browse the repository at this point in the history
…` happy

- Also add `--experimental-string-processing` to CI
  • Loading branch information
cooperlees committed Sep 14, 2021
1 parent 09ca6c0 commit 8210776
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Check formatting
run: |
black --check .
black --check --experimental-string-processing .
7 changes: 4 additions & 3 deletions bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,10 @@ def visit(self, node):

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

Expand Down

0 comments on commit 8210776

Please sign in to comment.