Skip to content
Open
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
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
default_stages: [commit]
default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml

- repo: https://github.com/kieran-ryan/pyprojectsort
rev: v0.3.0
rev: v0.4.0
hooks:
- id: pyprojectsort

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.14.9
hooks:
# Run the linter.
- id: ruff
Expand All @@ -23,13 +23,13 @@ repos:
- id: ruff-format

- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
rev: v0.4.6
hooks:
- id: blackdoc
additional_dependencies: ["black[jupyter]"]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.4.1
hooks:
- id: codespell
types_or: [python, markdown, rst]
Expand All @@ -44,7 +44,7 @@ repos:
# args: ["-d relaxed"]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -61,26 +61,26 @@ repos:
- id: check-execution-order

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
rev: v3.21.2
hooks:
- id: pyupgrade

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.2
hooks:
- id: nbstripout
args: ["--keep-output"]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.5
rev: 1.9.1
hooks:
- id: nbqa-black
- id: nbqa-ruff
args: ["--fix"]
- id: nbqa-ruff

- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
rev: v4.3.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
Expand Down
8 changes: 4 additions & 4 deletions tstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
from tstore.tswide import TSWide, open_tswide

__all__ = [
"open_tsdf",
"open_tslong",
"open_tswide",
"TS",
"TSArray",
"TSDF",
"TSArray",
"TSDtype",
"TSLong",
"TSWide",
"open_tsdf",
"open_tslong",
"open_tswide",
]

# Get version
Expand Down
2 changes: 1 addition & 1 deletion tstore/archive/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def check_time(time):
(datetime.datetime, datetime.date, np.datetime64, np.ndarray, str),
):
raise TypeError(
"Specify time with datetime.datetime objects or a " "string of format 'YYYY-MM-DD hh:mm:ss'.",
"Specify time with datetime.datetime objects or a string of format 'YYYY-MM-DD hh:mm:ss'.",
)
# If numpy array with datetime64 (and size=1)
if isinstance(time, np.ndarray):
Expand Down
2 changes: 1 addition & 1 deletion tstore/archive/partitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def check_partitioning(partitioning, ts_variables):
if not isinstance(partitioning, (dict, str, type(None))):
raise TypeError("")
if isinstance(partitioning, str) or partitioning is None:
partitioning = {ts_variable: partitioning for ts_variable in ts_variables}
partitioning = dict.fromkeys(ts_variables, partitioning)
for ts_variable, partitioning_str in partitioning.items():
try:
partitions = check_partitions(partitioning_str)
Expand Down
Loading
Loading