FossilRepo
ruff format migration
Commit
7de9c1146785aa730c3fbb0f97dde7a90abf129392cbb4b08b3a6985e5e37938
Parent
5d78642576b16e7…
1 file changed
+3
-10
| --- fossil/migrations/0005_alter_gitmirror_auth_credential_and_more.py | ||
| +++ fossil/migrations/0005_alter_gitmirror_auth_credential_and_more.py | ||
| @@ -7,11 +7,10 @@ | ||
| 7 | 7 | |
| 8 | 8 | import core.fields |
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | class Migration(migrations.Migration): |
| 12 | - | |
| 13 | 12 | dependencies = [ |
| 14 | 13 | ("fossil", "0004_historicalprojectwatch_notification_projectwatch"), |
| 15 | 14 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
| 16 | 15 | ] |
| 17 | 16 | |
| @@ -37,13 +36,11 @@ | ||
| 37 | 36 | migrations.CreateModel( |
| 38 | 37 | name="HistoricalUserSSHKey", |
| 39 | 38 | fields=[ |
| 40 | 39 | ( |
| 41 | 40 | "id", |
| 42 | - models.BigIntegerField( | |
| 43 | - auto_created=True, blank=True, db_index=True, verbose_name="ID" | |
| 44 | - ), | |
| 41 | + models.BigIntegerField(auto_created=True, blank=True, db_index=True, verbose_name="ID"), | |
| 45 | 42 | ), |
| 46 | 43 | ("version", models.PositiveIntegerField(default=1, editable=False)), |
| 47 | 44 | ("created_at", models.DateTimeField(blank=True, editable=False)), |
| 48 | 45 | ("updated_at", models.DateTimeField(blank=True, editable=False)), |
| 49 | 46 | ("deleted_at", models.DateTimeField(blank=True, null=True)), |
| @@ -54,13 +51,11 @@ | ||
| 54 | 51 | max_length=200, |
| 55 | 52 | ), |
| 56 | 53 | ), |
| 57 | 54 | ( |
| 58 | 55 | "public_key", |
| 59 | - core.fields.EncryptedTextField( | |
| 60 | - help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)" | |
| 61 | - ), | |
| 56 | + core.fields.EncryptedTextField(help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)"), | |
| 62 | 57 | ), |
| 63 | 58 | ( |
| 64 | 59 | "fingerprint", |
| 65 | 60 | models.CharField(blank=True, default="", max_length=100), |
| 66 | 61 | ), |
| @@ -161,13 +156,11 @@ | ||
| 161 | 156 | max_length=200, |
| 162 | 157 | ), |
| 163 | 158 | ), |
| 164 | 159 | ( |
| 165 | 160 | "public_key", |
| 166 | - core.fields.EncryptedTextField( | |
| 167 | - help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)" | |
| 168 | - ), | |
| 161 | + core.fields.EncryptedTextField(help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)"), | |
| 169 | 162 | ), |
| 170 | 163 | ( |
| 171 | 164 | "fingerprint", |
| 172 | 165 | models.CharField(blank=True, default="", max_length=100), |
| 173 | 166 | ), |
| 174 | 167 |
| --- fossil/migrations/0005_alter_gitmirror_auth_credential_and_more.py | |
| +++ fossil/migrations/0005_alter_gitmirror_auth_credential_and_more.py | |
| @@ -7,11 +7,10 @@ | |
| 7 | |
| 8 | import core.fields |
| 9 | |
| 10 | |
| 11 | class Migration(migrations.Migration): |
| 12 | |
| 13 | dependencies = [ |
| 14 | ("fossil", "0004_historicalprojectwatch_notification_projectwatch"), |
| 15 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
| 16 | ] |
| 17 | |
| @@ -37,13 +36,11 @@ | |
| 37 | migrations.CreateModel( |
| 38 | name="HistoricalUserSSHKey", |
| 39 | fields=[ |
| 40 | ( |
| 41 | "id", |
| 42 | models.BigIntegerField( |
| 43 | auto_created=True, blank=True, db_index=True, verbose_name="ID" |
| 44 | ), |
| 45 | ), |
| 46 | ("version", models.PositiveIntegerField(default=1, editable=False)), |
| 47 | ("created_at", models.DateTimeField(blank=True, editable=False)), |
| 48 | ("updated_at", models.DateTimeField(blank=True, editable=False)), |
| 49 | ("deleted_at", models.DateTimeField(blank=True, null=True)), |
| @@ -54,13 +51,11 @@ | |
| 54 | max_length=200, |
| 55 | ), |
| 56 | ), |
| 57 | ( |
| 58 | "public_key", |
| 59 | core.fields.EncryptedTextField( |
| 60 | help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)" |
| 61 | ), |
| 62 | ), |
| 63 | ( |
| 64 | "fingerprint", |
| 65 | models.CharField(blank=True, default="", max_length=100), |
| 66 | ), |
| @@ -161,13 +156,11 @@ | |
| 161 | max_length=200, |
| 162 | ), |
| 163 | ), |
| 164 | ( |
| 165 | "public_key", |
| 166 | core.fields.EncryptedTextField( |
| 167 | help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)" |
| 168 | ), |
| 169 | ), |
| 170 | ( |
| 171 | "fingerprint", |
| 172 | models.CharField(blank=True, default="", max_length=100), |
| 173 | ), |
| 174 |
| --- fossil/migrations/0005_alter_gitmirror_auth_credential_and_more.py | |
| +++ fossil/migrations/0005_alter_gitmirror_auth_credential_and_more.py | |
| @@ -7,11 +7,10 @@ | |
| 7 | |
| 8 | import core.fields |
| 9 | |
| 10 | |
| 11 | class Migration(migrations.Migration): |
| 12 | dependencies = [ |
| 13 | ("fossil", "0004_historicalprojectwatch_notification_projectwatch"), |
| 14 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
| 15 | ] |
| 16 | |
| @@ -37,13 +36,11 @@ | |
| 36 | migrations.CreateModel( |
| 37 | name="HistoricalUserSSHKey", |
| 38 | fields=[ |
| 39 | ( |
| 40 | "id", |
| 41 | models.BigIntegerField(auto_created=True, blank=True, db_index=True, verbose_name="ID"), |
| 42 | ), |
| 43 | ("version", models.PositiveIntegerField(default=1, editable=False)), |
| 44 | ("created_at", models.DateTimeField(blank=True, editable=False)), |
| 45 | ("updated_at", models.DateTimeField(blank=True, editable=False)), |
| 46 | ("deleted_at", models.DateTimeField(blank=True, null=True)), |
| @@ -54,13 +51,11 @@ | |
| 51 | max_length=200, |
| 52 | ), |
| 53 | ), |
| 54 | ( |
| 55 | "public_key", |
| 56 | core.fields.EncryptedTextField(help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)"), |
| 57 | ), |
| 58 | ( |
| 59 | "fingerprint", |
| 60 | models.CharField(blank=True, default="", max_length=100), |
| 61 | ), |
| @@ -161,13 +156,11 @@ | |
| 156 | max_length=200, |
| 157 | ), |
| 158 | ), |
| 159 | ( |
| 160 | "public_key", |
| 161 | core.fields.EncryptedTextField(help_text="SSH public key (ssh-ed25519, ssh-rsa, etc.)"), |
| 162 | ), |
| 163 | ( |
| 164 | "fingerprint", |
| 165 | models.CharField(blank=True, default="", max_length=100), |
| 166 | ), |
| 167 |