mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Update black to 24.1.0 (#4806)
* Update black from 23.12.1 to 24.1.0 * Update black from 23.12.1 to 24.1.0 * Update black pre-commit hooks * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix a few styling issues for black v24 --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
cf788ffe61
commit
6301fcc603
|
@ -33,7 +33,7 @@ repos:
|
||||||
exclude: hooks/
|
exclude: hooks/
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.12.1
|
rev: 24.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ NOTE:
|
||||||
TODO: restrict Cookiecutter Django project initialization to
|
TODO: restrict Cookiecutter Django project initialization to
|
||||||
Python 3.x environments only
|
Python 3.x environments only
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -7,6 +7,7 @@ NOTE:
|
||||||
TODO: restrict Cookiecutter Django project initialization
|
TODO: restrict Cookiecutter Django project initialization
|
||||||
to Python 3.x environments only
|
to Python 3.x environments only
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -4,7 +4,7 @@ binaryornot==0.4.4
|
||||||
|
|
||||||
# Code quality
|
# Code quality
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
black==23.12.1
|
black==24.1.0
|
||||||
isort==5.13.2
|
isort==5.13.2
|
||||||
flake8==7.0.0
|
flake8==7.0.0
|
||||||
django-upgrade==1.15.0
|
django-upgrade==1.15.0
|
||||||
|
|
|
@ -6,6 +6,7 @@ patches, only comparing major and minor version numbers.
|
||||||
This script handles when there are multiple Django versions that need
|
This script handles when there are multiple Django versions that need
|
||||||
to keep up to date.
|
to keep up to date.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Unit tests for the hooks"""
|
"""Unit tests for the hooks"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ repos:
|
||||||
args: [--py311-plus]
|
args: [--py311-plus]
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.12.1
|
rev: 24.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ For more information on this file, see
|
||||||
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
|
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""
|
"""Base settings to build other settings files upon."""
|
||||||
Base settings to build other settings files upon.
|
|
||||||
"""
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import environ
|
import environ
|
||||||
|
|
|
@ -32,7 +32,7 @@ TEMPLATES[0]["OPTIONS"]["debug"] = True # type: ignore # noqa: F405
|
||||||
# MEDIA
|
# MEDIA
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
|
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
|
||||||
MEDIA_URL = 'http://media.testserver'
|
MEDIA_URL = "http://media.testserver"
|
||||||
|
|
||||||
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
|
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
|
||||||
# django-webpack-loader
|
# django-webpack-loader
|
||||||
|
|
|
@ -13,6 +13,7 @@ middleware here, or combine a Django application with an application of another
|
||||||
framework.
|
framework.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -31,7 +31,7 @@ sphinx-autobuild==2021.3.14 # https://github.com/GaretJax/sphinx-autobuild
|
||||||
flake8==7.0.0 # https://github.com/PyCQA/flake8
|
flake8==7.0.0 # https://github.com/PyCQA/flake8
|
||||||
flake8-isort==6.1.1 # https://github.com/gforcada/flake8-isort
|
flake8-isort==6.1.1 # https://github.com/gforcada/flake8-isort
|
||||||
coverage==7.4.0 # https://github.com/nedbat/coveragepy
|
coverage==7.4.0 # https://github.com/nedbat/coveragepy
|
||||||
black==23.12.1 # https://github.com/psf/black
|
black==24.1.0 # https://github.com/psf/black
|
||||||
djlint==1.34.1 # https://github.com/Riverside-Healthcare/djLint
|
djlint==1.34.1 # https://github.com/Riverside-Healthcare/djLint
|
||||||
pylint-django==2.5.5 # https://github.com/PyCQA/pylint-django
|
pylint-django==2.5.5 # https://github.com/PyCQA/pylint-django
|
||||||
{%- if cookiecutter.use_celery == 'y' %}
|
{%- if cookiecutter.use_celery == 'y' %}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"""
|
"""Module for all Form Tests."""
|
||||||
Module for all Form Tests.
|
|
||||||
"""
|
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from {{ cookiecutter.project_slug }}.users.forms import UserAdminCreationForm
|
from {{ cookiecutter.project_slug }}.users.forms import UserAdminCreationForm
|
||||||
|
|
Loading…
Reference in New Issue
Block a user