Compare commits

...

2 commits

Author SHA1 Message Date
pre-commit-ci[bot]
6fbd239d8f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-18 21:31:15 +00:00
pre-commit-ci[bot]
fe8aa8ffeb [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0)
- [github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.1.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.7...v0.1.8)
- [github.com/pre-commit/mirrors-prettier: v4.0.0-alpha.4 → v4.0.0-alpha.7](https://github.com/pre-commit/mirrors-prettier/compare/v4.0.0-alpha.4...v4.0.0-alpha.7)
- [github.com/pre-commit/mirrors-eslint: v8.55.0 → v8.56.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.55.0...v8.56.0)
2023-12-18 21:31:15 +00:00
2 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ repos:
- id: django-upgrade - id: django-upgrade
args: [--target-version, "4.1"] args: [--target-version, "4.1"]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.11.0 rev: 23.12.0
hooks: hooks:
- id: black - id: black
args: [--target-version, py311] args: [--target-version, py311]
@ -40,17 +40,17 @@ repos:
hooks: hooks:
- id: djhtml - id: djhtml
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7 rev: v0.1.8
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.4 rev: v4.0.0-alpha.7
hooks: hooks:
- id: prettier - id: prettier
types_or: [javascript, css] types_or: [javascript, css]
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.55.0 rev: v8.56.0
hooks: hooks:
- id: eslint - id: eslint
args: [--fix] args: [--fix]

View file

@ -21,10 +21,10 @@ class Migration(migrations.Migration):
null=True, null=True,
upload_to="profile_pictures", upload_to="profile_pictures",
validators=[ validators=[
functools.partial( # noqa: PIE804 functools.partial(
character.models.character.validate_image, character.models.character.validate_image,
*(), *(),
**{"megabytes_limit": 2}, megabytes_limit=2,
), ),
], ],
verbose_name="image de profil", verbose_name="image de profil",