Skip to content

Commit

Permalink
bump calamine to 0.24.0, update prec-commit and pyo3
Browse files Browse the repository at this point in the history
  • Loading branch information
dimastbk committed Feb 9, 2024
1 parent b154dd4 commit 175a503
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- --py3-plus
- --keep-runtime-typing
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.11
rev: v0.2.1
hooks:
- id: ruff
args:
Expand All @@ -31,7 +31,7 @@ repos:
name: isort (pyi)
types: [pyi]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ name = "python_calamine"
crate-type = ["cdylib"]

[dependencies]
calamine = { git = "https://github.com/tafia/calamine/", rev = "2620510783cb150c84c4b174d3bdf461f1f68264", features = ["dates"] }
pyo3 = { version = "0.19.2", features = [
calamine = { version = "0.24.0", features = ["dates"] }
pyo3 = { version = "0.20.2", features = [
"extension-module",
"chrono",
"generate-import-lib",
] }
chrono = { version = "0.4.28", features = ["serde"] }
pyo3-file = "0.7.0"
chrono = { version = "0.4.33", features = ["serde"] }
pyo3-file = { git = "https://github.com/omerbenamram/pyo3-file", rev = "14e8f5f43b3ba6a0bdd734cbc452840e488d867a" }

[build-dependencies]
pyo3-build-config = "0.19.2"
pyo3-build-config = "0.20.2"
3 changes: 3 additions & 0 deletions python/python_calamine/_python_calamine.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ class CalamineWorkbook:
- pathlike (pathlib.Path),
- IO (must imlpement read/seek methods).
"""

@classmethod
def from_path(cls, path: str | os.PathLike) -> "CalamineWorkbook":
"""Reading file from path.
Parameters
----------
path : path (string)."""

@classmethod
def from_filelike(cls, filelike: ReadBuffer) -> "CalamineWorkbook":
"""Reading file from IO.
Expand All @@ -105,6 +107,7 @@ class CalamineWorkbook:
----------
filelike : IO (must imlpement read/seek methods).
"""

def get_sheet_by_name(self, name: str) -> CalamineSheet: ...
def get_sheet_by_index(self, index: int) -> CalamineSheet: ...

Expand Down

0 comments on commit 175a503

Please sign in to comment.