Skip to content

Commit

Permalink
Bump pre-commit dependencies and make black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Sep 6, 2023
1 parent 41a7bcc commit 6a25fa3
Show file tree
Hide file tree
Showing 102 changed files with 12 additions and 142 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Fix end of files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -11,7 +11,7 @@ repos:

# Remove unused imports/variables
- repo: https://github.com/myint/autoflake
rev: v1.4
rev: v2.2.1
hooks:
- id: autoflake
args:
Expand All @@ -28,20 +28,20 @@ repos:

# Black formatting
- repo: https://github.com/psf/black
rev: "22.3.0"
rev: "23.7.0"
hooks:
- id: black

# tool to automatically upgrade syntax for newer versions of the language
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.10.1
hooks:
- id: pyupgrade
args: [--py37-plus]

# Lint files
- repo: https://github.com/pycqa/flake8
rev: "3.9.0"
rev: "6.1.0"
hooks:
- id: flake8
additional_dependencies: [flake8-match==1.0.0, flake8-walrus==1.1.0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("authentication", "0001_initial"),
]
Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def clean_username(self, username, shallow=False):
if Person.objects.filter(
**{f"{username_field}__iexact": username},
).exists():

error_message = Person._meta.get_field(
username_field
).error_messages.get("unique")
Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class QFieldCloudException(Exception):
status_code = None

def __init__(self, detail="", status_code=None):

self.detail = detail

if status_code:
Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/geodb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def create_role_and_db(geodb):
"""

with GeodbConnection() as conn:

# CREATE DATABASE cannot run inside a transaction block
conn.set_isolation_level(ISOLATION_LEVEL_AUTOCOMMIT)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def add_arguments(self, parser):
)

def handle(self, *args, **options):

# Determine project ids to work on
proj_ids = options.get("projects")

Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/migrations/0002_deltafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0001_initial"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0002_deltafile"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0003_auto_20201127_1256"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0004_auto_20201201_1209"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def jsonify_output_field(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("core", "0005_auto_20201203_1037"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0006_auto_20201214_1642"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def update_site_name(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("core", "0007_project_overwrite_conflicts"),
("sites", "0002_alter_domain_unique"),
Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/migrations/0009_geodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0008_update_site_name"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0009_geodb"),
]
Expand Down
1 change: 0 additions & 1 deletion docker-app/qfieldcloud/core/migrations/0011_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0010_auto_20210106_1543"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0011_export"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0012_auto_20210106_0930"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0013_remove_exportation_output"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0014_exportation_output"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def generate_user_account(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("core", "0015_auto_20210123_0116"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0016_generate_user_account"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0018_auto_20210308_0034"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0019_auto_20210316_2056"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0022_auto_20210331_0143"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0023_auto_20210407_1247"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0024_auto_20210407_2002"),
("auth", "0012_alter_user_first_name_max_length"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0026_auto_20210409_1339"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0027_auto_20210408_0138"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0028_auto_20210414_1545"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def refactor_roles(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("core", "0029_auto_20210415_1420"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0030_refactor_roles"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0031_auto_20210415_1535"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0033_auto_20210419_1908"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0034_auto_20210508_1030"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0036_auto_20210426_1210"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0037_alter_project_owner_help_text"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0038_rename_workplace_useraccount_company"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0039_auto_20210630_1210"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0041_auto_20210705_0837"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def update_site_name(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("core", "0042_auto_20211001_2217"),
("sites", "0002_alter_domain_unique"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("core", "0043_update_site_name"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def fill_in_datetime_fields(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("core", "0044_alter_user_username"),
]
Expand Down
Loading

0 comments on commit 6a25fa3

Please sign in to comment.