Skip to content

Commit

Permalink
Reformat backend with 2025 Black
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Jan 29, 2025
1 parent af00099 commit 863c658
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion backend/btrixcloud/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" auth functions for login """
"""auth functions for login"""

import os
from uuid import UUID, uuid4
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/basecrawls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" base crawl type """
"""base crawl type"""

from datetime import datetime, timedelta
from typing import Optional, List, Union, Dict, Any, Type, TYPE_CHECKING, cast, Tuple
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/crawlmanager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" shared crawl manager implementation """
"""shared crawl manager implementation"""

import os
import secrets
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/crawls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Crawl API """
"""Crawl API"""

# pylint: disable=too-many-lines

Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/emailsender.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Basic Email Sending Support"""
"""Basic Email Sending Support"""

from datetime import datetime
import os
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/invites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Invite system management """
"""Invite system management"""

from typing import Optional, Any
import os
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/k8sapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" K8S API Access """
"""K8S API Access"""

import os
import traceback
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/main_bg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" entrypoint module for background jobs """
"""entrypoint module for background jobs"""

import asyncio
import os
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/main_op.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" entrypoint module for operator """
"""entrypoint module for operator"""

import os
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Migration 0007 - Workflows changes
- Rename colls to autoAddCollections
- Rename colls to autoAddCollections
- Re-calculate workflow crawl stats to populate crawlSuccessfulCount
"""

Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" operators module """
"""operators module"""

from .profiles import ProfileOperator
from .bgjobs import BgJobOperator
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/baseoperator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Base Operator class for all operators """
"""Base Operator class for all operators"""

import asyncio
import os
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/bgjobs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Operator handler for BackgroundJobs """
"""Operator handler for BackgroundJobs"""

from uuid import UUID
import traceback
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/crawls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" CrawlOperator """
"""CrawlOperator"""

import traceback
import os
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/cronjobs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Operator handler for crawl CronJobs """
"""Operator handler for crawl CronJobs"""

from uuid import UUID
from typing import Optional
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Operator Models """
"""Operator Models"""

from collections import defaultdict
from uuid import UUID
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/operator/profiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Operator handler for ProfileJobs """
"""Operator handler for ProfileJobs"""

from btrixcloud.utils import str_to_date, dt_now

Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" shared helper to initialize ops classes """
"""shared helper to initialize ops classes"""

from typing import Tuple

Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/profiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Profile Management """
"""Profile Management"""

from typing import Optional, TYPE_CHECKING, Any, cast, Dict, List, Tuple
from uuid import UUID, uuid4
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/uploads.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" handle user uploads into browsertrix """
"""handle user uploads into browsertrix"""

import uuid
from urllib.parse import unquote
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" k8s utils """
"""k8s utils"""

import asyncio
import atexit
Expand Down
2 changes: 1 addition & 1 deletion backend/btrixcloud/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" current version """
"""current version"""

__version__ = "1.14.0-beta.0"

0 comments on commit 863c658

Please sign in to comment.