Format code with black. Add makefile to run fmt/tests

This commit is contained in:
Griatch 2019-09-28 18:18:11 +02:00
parent d00bce9288
commit c2c7fa311a
299 changed files with 19037 additions and 11611 deletions

View file

@ -6,26 +6,61 @@ from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('typeclasses', '0001_initial'),
]
dependencies = [("typeclasses", "0001_initial")]
operations = [
migrations.CreateModel(
name='HelpEntry',
name="HelpEntry",
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('db_key', models.CharField(help_text='key to search for', unique=True, max_length=255, verbose_name='help key')),
('db_help_category', models.CharField(default='General', help_text='organizes help entries in lists', max_length=255, verbose_name='help category')),
('db_entrytext', models.TextField(help_text='the main body of help text', verbose_name='help entry', blank=True)),
('db_lock_storage', models.TextField(help_text='normally view:all().', verbose_name='locks', blank=True)),
('db_staff_only', models.BooleanField(default=False)),
('db_tags', models.ManyToManyField(help_text='tags on this object. Tags are simple string markers to identify, group and alias objects.', to='typeclasses.Tag', null=True)),
(
"id",
models.AutoField(
verbose_name="ID", serialize=False, auto_created=True, primary_key=True
),
),
(
"db_key",
models.CharField(
help_text="key to search for",
unique=True,
max_length=255,
verbose_name="help key",
),
),
(
"db_help_category",
models.CharField(
default="General",
help_text="organizes help entries in lists",
max_length=255,
verbose_name="help category",
),
),
(
"db_entrytext",
models.TextField(
help_text="the main body of help text",
verbose_name="help entry",
blank=True,
),
),
(
"db_lock_storage",
models.TextField(
help_text="normally view:all().", verbose_name="locks", blank=True
),
),
("db_staff_only", models.BooleanField(default=False)),
(
"db_tags",
models.ManyToManyField(
help_text="tags on this object. Tags are simple string markers to identify, group and alias objects.",
to="typeclasses.Tag",
null=True,
),
),
],
options={
'verbose_name': 'Help Entry',
'verbose_name_plural': 'Help Entries',
},
options={"verbose_name": "Help Entry", "verbose_name_plural": "Help Entries"},
bases=(models.Model,),
),
)
]

View file

@ -7,14 +7,16 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('help', '0001_initial'),
]
dependencies = [("help", "0001_initial")]
operations = [
migrations.AlterField(
model_name='helpentry',
name='db_tags',
field=models.ManyToManyField(blank=True, help_text='tags on this object. Tags are simple string markers to identify, group and alias objects.', to='typeclasses.Tag'),
),
model_name="helpentry",
name="db_tags",
field=models.ManyToManyField(
blank=True,
help_text="tags on this object. Tags are simple string markers to identify, group and alias objects.",
to="typeclasses.Tag",
),
)
]

View file

@ -5,34 +5,47 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('help', '0002_auto_20170606_1731'),
]
dependencies = [("help", "0002_auto_20170606_1731")]
operations = [
migrations.AlterField(
model_name='helpentry',
name='db_entrytext',
field=models.TextField(blank=True, help_text='the main body of help text', verbose_name='help entry'),
model_name="helpentry",
name="db_entrytext",
field=models.TextField(
blank=True, help_text="the main body of help text", verbose_name="help entry"
),
),
migrations.AlterField(
model_name='helpentry',
name='db_help_category',
field=models.CharField(default='General', help_text='organizes help entries in lists', max_length=255, verbose_name='help category'),
model_name="helpentry",
name="db_help_category",
field=models.CharField(
default="General",
help_text="organizes help entries in lists",
max_length=255,
verbose_name="help category",
),
),
migrations.AlterField(
model_name='helpentry',
name='db_key',
field=models.CharField(help_text='key to search for', max_length=255, unique=True, verbose_name='help key'),
model_name="helpentry",
name="db_key",
field=models.CharField(
help_text="key to search for", max_length=255, unique=True, verbose_name="help key"
),
),
migrations.AlterField(
model_name='helpentry',
name='db_lock_storage',
field=models.TextField(blank=True, help_text='normally view:all().', verbose_name='locks'),
model_name="helpentry",
name="db_lock_storage",
field=models.TextField(
blank=True, help_text="normally view:all().", verbose_name="locks"
),
),
migrations.AlterField(
model_name='helpentry',
name='db_tags',
field=models.ManyToManyField(blank=True, help_text='tags on this object. Tags are simple string markers to identify, group and alias objects.', to='typeclasses.Tag'),
model_name="helpentry",
name="db_tags",
field=models.ManyToManyField(
blank=True,
help_text="tags on this object. Tags are simple string markers to identify, group and alias objects.",
to="typeclasses.Tag",
),
),
]