Fix pre-commit config (#3435)

This commit is contained in:
Bruno Alla 2021-11-29 11:16:05 +00:00 committed by GitHub
parent 1e91d6671d
commit 0db415ad3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 9 deletions

View File

@ -327,13 +327,13 @@ Session.vim
tags tags
### Project template ### Project template
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %} {%- if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
MailHog MailHog
{%- endif %} {%- endif %}
{{ cookiecutter.project_slug }}/media/ {{ cookiecutter.project_slug }}/media/
.pytest_cache/ .pytest_cache/
{% if cookiecutter.use_docker == 'y' %} {%- if cookiecutter.use_docker == 'y' %}
.ipython/ .ipython/
{%- endif %} {%- endif %}

View File

@ -1,6 +1,5 @@
exclude: "docs|node_modules|migrations|.git|.tox" exclude: "^docs/|/migrations/"
default_stages: [commit] default_stages: [commit]
fail_fast: true
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks

View File

@ -1,10 +1,10 @@
release: python manage.py migrate release: python manage.py migrate
{% if cookiecutter.use_async == "y" -%} {%- if cookiecutter.use_async == "y" %}
web: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker web: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker
{%- else %} {%- else %}
web: gunicorn config.wsgi:application web: gunicorn config.wsgi:application
{%- endif %} {%- endif %}
{% if cookiecutter.use_celery == "y" -%} {%- if cookiecutter.use_celery == "y" %}
worker: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app worker --loglevel=info worker: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app worker --loglevel=info
beat: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app beat --loglevel=info beat: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app beat --loglevel=info
{%- endif %} {%- endif %}

View File

@ -6,12 +6,16 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('sites', '0003_set_site_domain_and_name'), ("sites", "0003_set_site_domain_and_name"),
] ]
operations = [ operations = [
migrations.AlterModelOptions( migrations.AlterModelOptions(
name='site', name="site",
options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'}, options={
"ordering": ["domain"],
"verbose_name": "site",
"verbose_name_plural": "sites",
},
), ),
] ]