Skip to content

Commit

Permalink
Re-format
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Dec 19, 2024
1 parent fde5875 commit af881b7
Show file tree
Hide file tree
Showing 130 changed files with 248 additions and 207 deletions.
3 changes: 1 addition & 2 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import datetime
import os
import subprocess

from shlex import quote
import subprocess

from invoke import run as local
from invoke.tasks import task
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests

from django.core.management.base import BaseCommand

import requests

from wagtailio.areweheadlessyet.models import WagtailHeadlessIssue


Expand Down
4 changes: 2 additions & 2 deletions wagtailio/areweheadlessyet/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by Django 3.2.8 on 2022-01-24 11:57

from django.db import migrations, models
import django.db.models.deletion

import wagtail.blocks
import wagtail.fields

from django.db import migrations, models


class Migration(migrations.Migration):
initial = True
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by Django 3.2.8 on 2022-01-25 14:05

from django.db import migrations, models
import django.db.models.deletion

import wagtail.blocks
import wagtail.fields

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Generated by Django 3.2.8 on 2022-01-27 10:27

from django.db import migrations, models

import wagtail.blocks
import wagtail.fields
import wagtail.snippets.blocks

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Generated by Django 3.2.8 on 2022-02-08 12:57

from django.db import migrations

import wagtail.blocks
import wagtail.fields

from django.db import migrations

import wagtailio.areweheadlessyet.blocks


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Generated by Django 3.2.8 on 2022-06-01 14:53

from django.db import migrations

import wagtail.blocks
import wagtail.fields

from django.db import migrations

import wagtailio.areweheadlessyet.blocks


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Generated by Django 3.2.16 on 2022-10-04 12:34

from django.db import migrations

import wagtail.blocks
import wagtail.fields

from django.db import migrations

import wagtailio.areweheadlessyet.blocks


Expand Down
1 change: 1 addition & 0 deletions wagtailio/areweheadlessyet/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.db import models

from wagtail.admin.panels import FieldPanel, MultiFieldPanel
from wagtail.api import APIField
from wagtail.fields import RichTextField, StreamField
Expand Down
1 change: 1 addition & 0 deletions wagtailio/areweheadlessyet/signal_handlers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.conf import settings

from wagtail.signals import page_published, page_unpublished

from .models import AreWeHeadlessYetHomePage, AreWeHeadlessYetTopicPage
Expand Down
5 changes: 2 additions & 3 deletions wagtailio/areweheadlessyet/thread_pool.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from concurrent.futures import ThreadPoolExecutor
import logging

from concurrent.futures import ThreadPoolExecutor
from django.conf import settings

import requests

from django.conf import settings


logger = logging.getLogger("wagtailio")

Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Generated by Django 1.9.8 on 2016-07-29 09:55

from django.db import migrations, models
import django.db.models.deletion

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations, models

import wagtailio.utils.blocks


Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0004_auto_20190805_1754.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Generated by Django 2.0.13 on 2019-08-05 17:54

from django.db import migrations

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations

import wagtailio.utils.blocks


Expand Down
3 changes: 1 addition & 2 deletions wagtailio/blog/migrations/0005_auto_20190813_0931.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Generated by Django 2.0.13 on 2019-08-13 09:31

import django.db.models.deletion

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Generated by Django 3.2.12 on 2022-08-18 11:05

from django.db import migrations, models
import django.db.models.deletion

import modelcluster.fields
import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations, models

import wagtailio.utils.blocks


Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0008_featuredpost.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by Django 3.2.12 on 2022-08-22 12:45

from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields

from django.db import migrations, models
import modelcluster.fields


class Migration(migrations.Migration):
Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0009_update_templates.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Generated by Django 3.2.12 on 2022-08-31 16:29

from django.db import migrations

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations

import wagtailio.utils.blocks


Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0010_streamfield_use_json_field.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Generated by Django 3.2.16 on 2022-10-04 12:34

from django.db import migrations

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations

import wagtailio.utils.blocks


Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0012_clean_up_blog_blocks.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Generated by Django 3.2.18 on 2023-05-19 18:37

from django.db import migrations

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks
import wagtail.snippets.blocks

from django.db import migrations

import wagtailio.utils.blocks


Expand Down
4 changes: 2 additions & 2 deletions wagtailio/blog/migrations/0013_alter_blogpage_body.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Generated by Django 4.2.8 on 2023-12-08 18:07

from django.db import migrations

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.fields
import wagtail.images.blocks
import wagtail.snippets.blocks

from django.db import migrations

import wagtailio.utils.blocks


Expand Down
1 change: 1 addition & 0 deletions wagtailio/blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from django.db import models
from django.shortcuts import render
from django.utils.functional import cached_property

from modelcluster.fields import ParentalKey
from wagtail.admin.panels import FieldPanel, InlinePanel
from wagtail.fields import StreamField
Expand Down
2 changes: 2 additions & 0 deletions wagtailio/core/blocks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from django.core.exceptions import ValidationError
from django.forms.utils import ErrorList

from wagtail import blocks
from wagtail.blocks.struct_block import StructBlockValidationError
from wagtail.contrib.typed_table_block.blocks import TypedTableBlock
from wagtail.embeds.blocks import EmbedBlock
from wagtail.images.blocks import ImageChooserBlock
from wagtail.snippets.blocks import SnippetChooserBlock

from wagtailmedia.blocks import VideoChooserBlock

from wagtailio.core.choices import SVGIcon
Expand Down
4 changes: 2 additions & 2 deletions wagtailio/core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from django.db import migrations, models
import django.db.models.deletion

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations, models

import wagtailio.utils.blocks


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields

from django.db import migrations, models
import modelcluster.fields


class Migration(migrations.Migration):
Expand Down
4 changes: 2 additions & 2 deletions wagtailio/core/migrations/0004_auto_20150519_2040.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from django.db import migrations, models
import django.db.models.deletion

import modelcluster.fields
import wagtail.fields

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
Expand Down
4 changes: 2 additions & 2 deletions wagtailio/core/migrations/0005_auto_20150520_1429.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.db import migrations, models

import modelcluster.fields
import wagtail.fields

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
Expand Down
3 changes: 1 addition & 2 deletions wagtailio/core/migrations/0007_auto_20150520_1516.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import django.db.models.deletion

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand Down
3 changes: 1 addition & 2 deletions wagtailio/core/migrations/0008_auto_20150520_1554.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import django.db.models.deletion

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand Down
4 changes: 2 additions & 2 deletions wagtailio/core/migrations/0010_auto_20150522_1504.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from django.db import migrations, models

import wagtail.blocks
import wagtail.documents.blocks
import wagtail.fields
import wagtail.images.blocks

from django.db import migrations, models

import wagtailio.utils.blocks


Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from django.db import migrations, models
import django.db.models.deletion

import modelcluster.fields
import wagtail.fields

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import modelcluster.fields

from django.db import migrations, models

import modelcluster.fields


class Migration(migrations.Migration):
dependencies = [
Expand Down
3 changes: 1 addition & 2 deletions wagtailio/core/migrations/0016_auto_20150527_1326.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import django.db.models.deletion

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand Down
Loading

0 comments on commit af881b7

Please sign in to comment.