Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 25, 2023
1 parent cd67109 commit 872286d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions strawberry/cli/commands/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import functools
import importlib
import inspect
from typing import List, Optional, Type, TYPE_CHECKING
from typing import TYPE_CHECKING, List, Optional, Type

import rich
import typer
Expand Down Expand Up @@ -146,7 +146,9 @@ def codegen(
elif isinstance(p, TypeScriptPlugin):
p.outfile_name = q.stem + ".ts"

code_generator = QueryCodegen(schema_symbol, plugins=plugins, console_plugin=console_plugin)
code_generator = QueryCodegen(
schema_symbol, plugins=plugins, console_plugin=console_plugin
)
code_generator.run(q.read_text())

console_plugin.after_all_finished()
1 change: 0 additions & 1 deletion tests/codegen/test_query_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from pathlib import Path
from typing import Type
from unittest import mock

import pytest
from pytest_snapshot.plugin import Snapshot
Expand Down

0 comments on commit 872286d

Please sign in to comment.