Update black to 22.1.0 (#3572)

Co-authored-by: pyup-bot <github-bot@pyup.io>
This commit is contained in:
Bruno Alla 2022-02-07 15:40:53 +00:00 committed by GitHub
parent 2417910bac
commit 150e1d8bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 6 deletions

View File

@ -9,7 +9,7 @@ repos:
- id: check-yaml - id: check-yaml
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 21.12b0 rev: 22.1.0
hooks: hooks:
- id: black - id: black

View File

@ -4,7 +4,7 @@ binaryornot==0.4.4
# Code quality # Code quality
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
black==21.12b0 black==22.1.0
isort==5.10.1 isort==5.10.1
flake8==4.0.1 flake8==4.0.1
flake8-isort==4.1.1 flake8-isort==4.1.1

View File

@ -179,7 +179,12 @@ def test_black_passes(cookies, context_override):
try: try:
sh.black( sh.black(
"--check", "--diff", "--exclude", "migrations", _cwd=str(result.project) "--check",
"--diff",
"--exclude",
"migrations",
".",
_cwd=str(result.project),
) )
except sh.ErrorReturnCode as e: except sh.ErrorReturnCode as e:
pytest.fail(e.stdout.decode()) pytest.fail(e.stdout.decode())

View File

@ -10,7 +10,7 @@ repos:
- id: check-yaml - id: check-yaml
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 21.12b0 rev: 22.1.0
hooks: hooks:
- id: black - id: black

View File

@ -44,7 +44,10 @@ LOCALE_PATHS = [str(ROOT_DIR / "locale")]
DATABASES = {"default": env.db("DATABASE_URL")} DATABASES = {"default": env.db("DATABASE_URL")}
{%- else %} {%- else %}
DATABASES = { DATABASES = {
"default": env.db("DATABASE_URL", default="postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}"), "default": env.db(
"DATABASE_URL",
default="postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}",
),
} }
{%- endif %} {%- endif %}
DATABASES["default"]["ATOMIC_REQUESTS"] = True DATABASES["default"]["ATOMIC_REQUESTS"] = True

View File

@ -31,7 +31,7 @@ sphinx-autobuild==2021.3.14 # https://github.com/GaretJax/sphinx-autobuild
flake8==4.0.1 # https://github.com/PyCQA/flake8 flake8==4.0.1 # https://github.com/PyCQA/flake8
flake8-isort==4.1.1 # https://github.com/gforcada/flake8-isort flake8-isort==4.1.1 # https://github.com/gforcada/flake8-isort
coverage==6.3.1 # https://github.com/nedbat/coveragepy coverage==6.3.1 # https://github.com/nedbat/coveragepy
black==21.12b0 # https://github.com/psf/black black==22.1.0 # https://github.com/psf/black
pylint-django==2.5.0 # https://github.com/PyCQA/pylint-django pylint-django==2.5.0 # https://github.com/PyCQA/pylint-django
{%- if cookiecutter.use_celery == 'y' %} {%- if cookiecutter.use_celery == 'y' %}
pylint-celery==0.3 # https://github.com/PyCQA/pylint-celery pylint-celery==0.3 # https://github.com/PyCQA/pylint-celery