Skip to content

Commit 0b5cd5d

Browse files
committed
update codebase for black 24
1 parent c5b14a9 commit 0b5cd5d

19 files changed

+19
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
matrix:
99
platform: [ubuntu-latest, windows-latest]
1010
python-version:
11-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0-rc.1", "pypy-3.9"]
11+
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Set up Python ${{ matrix.python-version }} on platform ${{ matrix.platform }}

examples/3_iot_datastore_with_mqtt.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
Author:
3434
Justin Fung (justincaseyfung@gmail.com)
3535
"""
36+
3637
from datetime import datetime, timezone
3738
from queue import Queue
3839
import json

examples/4_backing_up_tinyflux_at_the_edge.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
1111
See https://github.com/dbader/schedule for documentation.
1212
"""
13+
1314
from datetime import datetime
1415
import time
1516

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""PyTest configuration and test fixtures."""
2+
23
import pytest
34

45
from tinyflux.storages import CSVStorage, MemoryStorage

tests/test_index.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for tinyflux.index module."""
2+
23
from datetime import datetime, timezone, timedelta
34
import pytest
45

tests/test_measurement.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
Tests are generally organized by Measurement class method.
44
"""
5+
56
from datetime import datetime, timezone, timedelta
67
import re
78
from typing import Generator

tests/test_point.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the tinyflux.point module."""
2+
23
from datetime import datetime, timezone, timedelta
34
import pytest
45
from tinyflux.point import Point, validate_tags, validate_fields

tests/test_queries.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the tinyflux.queries module."""
2+
23
import operator
34
from datetime import datetime, timezone, timedelta
45
from itertools import combinations

tests/test_storages.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the tinyflux.storages module."""
2+
23
import csv
34
from datetime import datetime, timezone, timedelta
45
import os

tests/test_tinyflux.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
Tests are generally organized by TinyFlux class method.
44
"""
5+
56
import csv
67
from datetime import datetime, timezone, timedelta
78
import os

tests/test_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for tinyflux.utils module."""
2+
23
import pytest
34

45
from tinyflux.utils import (

tinyflux/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
>>> q2 = FieldQuery().aqi > 100
2828
>>> hazardous_days_in_LA_2020 = db.search(q1 & q2)
2929
"""
30+
3031
from .database import TinyFlux
3132
from .point import Point
3233
from .queries import TagQuery, FieldQuery, MeasurementQuery, TimeQuery

tinyflux/database.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The main module of the TinyFlux package, containing the TinyFlux class."""
2+
23
import copy
34
from datetime import datetime, timezone
45
from functools import wraps

tinyflux/index.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
An IndexResult returns the indicies of revelant TinyFlux queries for further
99
handling, usually as an input to a storage retrieval.
1010
"""
11+
1112
from datetime import datetime, timezone
1213
import operator
1314
from typing import Dict, Iterable, List, Optional, Set, Tuple, Union

tinyflux/measurement.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
>>> db = TinyFlux(storage=MemoryStorage)
99
>>> m = db.measurement("my_measurement")
1010
"""
11+
1112
from __future__ import annotations
1213

1314
from datetime import datetime

tinyflux/queries.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
right-hand side) so that the other consumers of queries, includng an Index, may
1515
use them for their own purposes.
1616
"""
17+
1718
from datetime import datetime
1819
import operator
1920
import re

tinyflux/storages.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class defines the requires abstract methods of read, write, and append, as well
1313
>>> my_mem_db = TinyFlux(storage=MemoryStorage)
1414
>>> my_csv_db = TinyFlux('path/to/my.csv', storage=CSVStorage)
1515
"""
16+
1617
from abc import ABC, abstractmethod
1718
import csv
1819
from datetime import datetime

tinyflux/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Defintion of TinyFlux utils."""
2+
23
import bisect
34
from typing import Any, List, Optional
45

tinyflux/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Version."""
2+
23
__version__ = "0.4.1" # pragma: no cover

0 commit comments

Comments
 (0)