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

View file

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