Skip to content

Commit eca46b1

Browse files
authored
Merge pull request #1123 from jazzband/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 697163d + add4f15 commit eca46b1

10 files changed

+1
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- "-x *test*.py"
99

1010
- repo: https://github.com/psf/black
11-
rev: 22.12.0
11+
rev: 23.1.0
1212
hooks:
1313
- id: black
1414
language_version: python3.8

simple_history/management/commands/clean_old_history.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def handle(self, *args, **options):
5353
self._process(to_process, days_back=options["days"], dry_run=options["dry"])
5454

5555
def _process(self, to_process, days_back=None, dry_run=True):
56-
5756
start_date = timezone.now() - timezone.timedelta(days=days_back)
5857
for model, history_model in to_process:
5958
history_model_manager = history_model.objects

simple_history/management/commands/populate_history.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def _bulk_history_create(self, model, batch_size):
135135
# creating them. So we only keep batch_size worth of models in
136136
# historical_instances and clear them after we hit batch_size
137137
if index % batch_size == 0:
138-
139138
history.bulk_history_create(instances, batch_size=batch_size)
140139

141140
instances = []

simple_history/registry_tests/migration_test_app/migrations/0001_initial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
initial = True
109

1110
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]

simple_history/registry_tests/migration_test_app/migrations/0002_historicalmodelwithcustomattrforeignkey_modelwithcustomattrforeignkey.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class Migration(migrations.Migration):
13-
1413
dependencies = [
1514
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
1615
("migration_test_app", "0001_initial"),

simple_history/registry_tests/migration_test_app/migrations/0003_alter_historicalmodelwithcustomattrforeignkey_options_and_more.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
(
109
"migration_test_app",

simple_history/registry_tests/migration_test_app/migrations/0004_history_date_indexing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
(
109
"migration_test_app",

simple_history/registry_tests/migration_test_app/migrations/0005_historicalmodelwithcustomattronetoonefield_modelwithcustomattronetoonefield.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class Migration(migrations.Migration):
12-
1312
dependencies = [
1413
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
1514
(

simple_history/registry_tests/migration_test_app/migrations/0006_alter_historicalmodelwithcustomattronetoonefield_options_and_more.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
(
109
"migration_test_app",

simple_history/registry_tests/migration_test_app/migrations/0007_alter_historicalmodelwithcustomattrforeignkey_options_and_more.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
(
109
"migration_test_app",

0 commit comments

Comments
 (0)