Skip to content

Commit

Permalink
chore(deps,pre-commit.ci): bump black and ruff (#244)
Browse files Browse the repository at this point in the history
updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](psf/black@23.3.0...23.7.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.277 → v0.0.278](astral-sh/ruff-pre-commit@v0.0.277...v0.0.278)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Jul 18, 2023
1 parent 1760964 commit 8ea8865
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_commit_msg: "chore(deps,pre-commit.ci): bump"
repos:
- repo: https://github.com/psf/black
rev: '23.3.0'
rev: '23.7.0'
hooks:
- id: black
args: [--preview]
Expand All @@ -13,7 +13,7 @@ repos:
language_version: python3.8

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.277' # Use the sha / tag you want to point at
rev: 'v0.0.278' # Use the sha / tag you want to point at
hooks:
- id: ruff
args: [--fix]
Expand Down
6 changes: 2 additions & 4 deletions src/graia/ariadne/message/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ def get(self, element_class: Type[Element_T], count: int = -1) -> List[Element_T
res = super().get(element_class, count)
if isinstance(res, (Quote, Source)):
raise IndexError(
(
"MessageChain.get(Quote/Source) is removed in 0.10.0.\n"
"See https://github.com/GraiaProject/Ariadne/blob/dev/CHANGELOG.md#095"
),
"MessageChain.get(Quote/Source) is removed in 0.10.0.\n"
"See https://github.com/GraiaProject/Ariadne/blob/dev/CHANGELOG.md#095",
)
return res

Expand Down

0 comments on commit 8ea8865

Please sign in to comment.