Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #229

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.5
rev: v0.9.6
hooks:
# Run the linter.
- id: ruff
Expand All @@ -16,22 +16,22 @@ repos:
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies: [types-beautifulsoup4, types-decorator, types-PyYAML, pydantic, types-toml]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
rev: v0.44.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.1
hooks:
- id: nbstripout
args: ['--extra-keys="metadata.kernelspec"']
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.22
rev: 0.5.29
hooks:
- id: uv-lock
4 changes: 2 additions & 2 deletions docs/source/examples/comparing-pyprobe-performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"median_total_time_pandas = total_time_pandas[:, median_total_time_idx_pandas]\n",
"\n",
"print(\n",
" f\"The median execution time for the filtering query in PyProBE is {median_total_time_pandas[-1]/median_total_time_pyprobe[-1]:.2f} times faster than Pandas.\"\n",
" f\"The median execution time for the filtering query in PyProBE is {median_total_time_pandas[-1] / median_total_time_pyprobe[-1]:.2f} times faster than Pandas.\"\n",
")"
]
},
Expand Down Expand Up @@ -388,7 +388,7 @@
"os.remove(data_directory + \"/sample_data_neware_repeated.parquet\")\n",
"\n",
"print(\n",
" f\"The median execution time for the filtering query in PyProBE is {rep_median_total_time_pandas[-1]/rep_median_total_time_pyprobe[-1]:.2f} times faster than Pandas.\"\n",
" f\"The median execution time for the filtering query in PyProBE is {rep_median_total_time_pandas[-1] / rep_median_total_time_pyprobe[-1]:.2f} times faster than Pandas.\"\n",
")\n",
"\n",
"plt.figure(figsize=(10, 7.5))\n",
Expand Down
3 changes: 1 addition & 2 deletions pyprobe/analysis/pulsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ def get_resistances(
"Pulse Number": "An index for each pulse.",
"Capacity": input_data.column_definitions["Capacity"],
"SOC": input_data.column_definitions["SOC"],
"OCV": "The voltage value at the final data point in the rest before a "
"pulse.",
"OCV": "The voltage value at the final data point in the rest before a pulse.",
"R0": "The instantaneous resistance measured between the final rest "
"point and the first data point in the pulse.",
}
Expand Down
2 changes: 1 addition & 1 deletion pyprobe/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _convert_to_parquet(
output_data_path,
compression=compression_dict[compression_priority],
)
logger.info(f"\tparquet written in {time.time()-t1: .2f} seconds.")
logger.info(f"\tparquet written in {time.time() - t1: .2f} seconds.")
else:
logger.info(f"File {output_data_path} already exists. Skipping.")

Expand Down
Loading