Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#529)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4)

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

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

* chore(deps): update ruff

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Thiago Bellini Ribeiro <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and bellini666 authored May 13, 2024
1 parent 2d7c091 commit ed746c9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-xml
- id: check-symlinks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.4
hooks:
- id: ruff-format
- id: ruff
Expand Down
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion strawberry_django/management/commands/export_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ def handle(self, *args, **options):
schema_output = print_schema(schema_symbol)
path = options.get("path")
if path:
pathlib.Path(path).write_text(schema_output)
pathlib.Path(path).write_text(schema_output, encoding="utf-8")
else:
self.stdout.write(schema_output)
2 changes: 1 addition & 1 deletion tests/projects/faker.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
User = cast(Type[AbstractUser], get_user_model())


class _BaseFactory(Generic[_T], factory.django.DjangoModelFactory):
class _BaseFactory(factory.django.DjangoModelFactory, Generic[_T]):
Meta: ClassVar[Any]

@classmethod
Expand Down

0 comments on commit ed746c9

Please sign in to comment.