Skip to content

Commit

Permalink
chore(pre-commit): update versions of black, flake8, and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Feb 24, 2024
1 parent aebe45d commit 14b4283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/psf/black
rev: "23.10.0"
rev: "24.2.0"
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: "6.1.0"
rev: "7.0.0"
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "fc260393cc4ec09f8fc0a5ba4437f481c8b55dc1"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
6 changes: 3 additions & 3 deletions rplugin/python3/CopilotChat/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def ask(

error_code = response.json().get("error", {}).get("code")
if error_code and error_messages.get(response.status_code):
error_messages[
response.status_code
] = f"{error_messages[response.status_code]}: {error_code}"
error_messages[response.status_code] = (
f"{error_messages[response.status_code]}: {error_code}"
)

raise Exception(
error_messages.get(
Expand Down

0 comments on commit 14b4283

Please sign in to comment.