Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
Expand Down Expand Up @@ -65,7 +65,7 @@ repos:

# Versioning: Commit messages & changelog
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.29.0
rev: v4.6.1
hooks:
- id: commitizen
stages: [commit-msg]
Expand Down Expand Up @@ -106,14 +106,14 @@ repos:
# ]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 25.1.0
hooks:
- id: black
language_version: python3.10


- repo: https://github.com/PyCQA/flake8
rev: "7.1.2"
rev: "7.2.0"
hooks:
- id: flake8
name: flake8
Expand Down
8 changes: 4 additions & 4 deletions backend/api/tasks/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,10 +1143,10 @@ async def extend_duration(
async def reset_by_user(
request: Request,
project_id: int,
username: str
| None = Query(None, description="Username to revert tasks for", example="test"),
action: str
| None = Query(
username: str | None = Query(
None, description="Username to revert tasks for", example="test"
),
action: str | None = Query(
None,
description="Action to revert tasks for. Can be BADIMAGERY or VALIDATED",
example="BADIMAGERY",
Expand Down
6 changes: 3 additions & 3 deletions backend/services/mapping_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ async def generate_gpx(
# Create trk element
trk = ET.Element("trk")
root.append(trk)
ET.SubElement(
trk, "name"
).text = f"Task for project {project_id}. Do not edit outside of this area!"
ET.SubElement(trk, "name").text = (
f"Task for project {project_id}. Do not edit outside of this area!"
)

# Construct trkseg elements
if task_ids_str is not None:
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/05e1ecf9953a_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-12-04 19:53:41.477085

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/05f1b650ddbc_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-08-17 15:58:37.118728

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/068674f06b0f_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-10-02 08:45:00.553060

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/0a6b82b55983_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-09-04 19:09:45.866336

"""

import re

import sqlalchemy as sa
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/0aaac86a48dc_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-05-01 14:04:16.188885

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/0d47c10c8a66_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-01-13 20:51:12.809062

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/0eeaa5aed53b_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-06-26 17:31:17.238355

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/0eee8c1abd3a_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-05-24 23:05:45.512395

"""

import json
import sys

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/14340f1e0d6b_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-03-13 10:35:57.594664

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/14842761654b_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-11-11 07:18:58.675778

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/1579d24928e7_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-05-29 09:55:16.565573

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/22e7d7e0fa02_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-08-06 15:31:03.973448

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/22e9a0e9b254_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-11-21 04:20:16.572298

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/251a7638da78_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-08-30 07:46:49.074078

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/29097876c7e6_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-12-04 11:21:42.622908

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/2cfa981c70e7_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-07-16 10:30:59.885956

"""

import geoalchemy2
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/2d6a7ad4e1eb_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-03-23 12:10:20.120500

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/2ee4bca188a9_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-03-12 09:42:54.198713

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/30b091260689_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-07-30 12:52:52.845202

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/3b8b0956b217_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-27 10:30:55.193989

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/3ee58dee57c9_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-08-24 13:55:32.308278

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/42c45e74752b_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-03-29 09:07:55.771834

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/451f6bd05a19_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-07-02 17:03:55.567940

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/48c3aed123cf_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-05-01 12:09:36.887823

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/4b9fb4d3f349_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-07-19 13:38:08.010157

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/4ed992117718_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-09-20 13:11:54.721669

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/51ccc46f1b8a_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-10-16 19:30:51.064696

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/55790eeec3bf_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-05-12 18:43:37.666725

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/567b75e74955_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-06-02 17:18:52.374843

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/5952780a577e_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-06-11 16:58:45.700192

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/5eba4824505e_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-10-22 14:17:35.925047

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/64b682d53e23_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-06-06 16:53:47.604019

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/6612e4d6524c_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-08-19 21:40:06.669352

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/7435b0a865e6_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-08-20 08:54:12.215666

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/772aff899389_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-11-08 19:09:46.152809

"""

import sqlalchemy as sa
from alembic import op

Expand Down
3 changes: 2 additions & 1 deletion migrations/versions/7937dae319b5_.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
""" Ensure Project's country names are in English
"""Ensure Project's country names are in English

Revision ID: 7937dae319b5
Revises: 14842761654b
Create Date: 2020-09-21 17:17:10.542429

"""

import requests
import sqlalchemy as sa
from alembic import op
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/7991a7e1b88d_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-05-30 17:19:55.061108

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/7bbc01082457_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-01-29 11:19:20.113089

"""

import sys

import sqlalchemy as sa
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/7d55a089b5bc_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-06-26 17:22:12.828934

"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/824268a7a675_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-12-07 12:54:19.964101

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 1 addition & 0 deletions migrations/versions/83eb4cbb0abd_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-11-07 09:30:29.175751

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Loading