Skip to content

Commit

Permalink
Update dependencies and workflows (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
durandtibo authored Jul 31, 2024
1 parent ca1b546 commit 2fded78
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ jobs:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.12', '3.11', '3.10', '3.9' ]
polars-version: [ 1.2.1, 1.0.0, 0.20.31, 0.19.19, 0.18.15 ]
polars-version: [ 1.3.0, 1.0.0, 0.20.31, 0.19.19, 0.18.15 ]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.12', '3.11', '3.10', '3.9' ]
polars-version: [ 1.2.1, 1.0.0, 0.20.31, 0.19.19, 0.18.15 ]
polars-version: [ 1.3.0, 1.0.0, 0.20.31, 0.19.19, 0.18.15 ]

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_stages: [ commit ]

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py39-plus]
Expand Down Expand Up @@ -52,7 +52,7 @@ repos:
additional_dependencies:
- black>=24.4.1
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.4
rev: v0.5.5
hooks:
- id: ruff
args: [ --fix, --unsafe-fixes ]
33 changes: 16 additions & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ black = ">=24.4"
coverage = { extras = ["toml"], version = "^7.6" }
docformatter = { extras = ["tomli"], version = "^1.7" }
feu = ">=0.0.6,<1.0"
pre-commit = "^3.7"
pre-commit = "^3.8"
pygments = "^2.18"
pytest = "^8.3"
pytest-cov = "^5.0"
Expand Down
2 changes: 1 addition & 1 deletion src/coola/random/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def has_manager(cls, name: str) -> bool:


@contextmanager
def random_seed(seed: int) -> Generator[None, None, None]:
def random_seed(seed: int) -> Generator[None]:
r"""Implement a context manager to manage the random seed and random
number generator (RNG) state.
Expand Down
2 changes: 1 addition & 1 deletion src/coola/random/numpy_.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_random_managers() -> dict[str, BaseRandomManager]:


@contextmanager
def numpy_seed(seed: int) -> Generator[None, None, None]:
def numpy_seed(seed: int) -> Generator[None]:
r"""Implement a context manager to manage the NumPy random seed and
random number generator (RNG) state.
Expand Down
2 changes: 1 addition & 1 deletion src/coola/random/torch_.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_random_managers() -> dict[str, BaseRandomManager]:


@contextmanager
def torch_seed(seed: int) -> Generator[None, None, None]:
def torch_seed(seed: int) -> Generator[None]:
r"""Implement a context manager to manage the PyTorch random seed and
random number generator (RNG) state.
Expand Down
2 changes: 1 addition & 1 deletion src/coola/utils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def sanitize_path(path: Path | str) -> Path:


@contextlib.contextmanager
def working_directory(path: Path) -> Generator[None, None, None]:
def working_directory(path: Path) -> Generator[None]:
r"""Context manager to change the working directory to the given
path, and then changes it back to its previous value on exit.
Expand Down

0 comments on commit 2fded78

Please sign in to comment.