Skip to content

Commit

Permalink
updated deps and precommit deps (#158)
Browse files Browse the repository at this point in the history
# Pull Request Template

## Description

updated dependencies in `pyproject.toml` and `.pre-commit-config.yaml`

## Type of change

Please delete options that are not relevant.

- [x] New feature (non-breaking change which adds functionality)
## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration.

`pythom -m pytest tests/ -vv` passes

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings

---------

Co-authored-by: Sankalp Gilda <[email protected]>
  • Loading branch information
astrogilda and Sankalp Gilda committed Jul 8, 2024
1 parent 9a4f4e2 commit 112f56e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ repos:
#exclude: '^poetry\.lock$|\.pyc$|\.pyo$|\.pyd$|__pycache__|^venv|^\.venv'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.5.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: '^poetry\.lock$|\.pyc$|\.pyo$|\.pyd$|__pycache__|^venv|^\.venv'

- repo: https://github.com/crate-ci/typos
rev: v1.20.9
rev: v1.22.9
hooks:
- id: typos
args: [--write-changes]
Expand All @@ -59,7 +59,7 @@ repos:
exclude: '^poetry\.lock$|\.pyc$|\.pyo$|\.pyd$|__pycache__|^venv|^\.venv'

- repo: https://github.com/psf/black
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black
args:
Expand All @@ -72,11 +72,11 @@ repos:
exclude: '^poetry\.lock$|\.pyc$|\.pyo$|\.pyd$|__pycache__|^venv|^\.venv'

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies:
- "black==24.4.0"
- "black==24.4.2"
args:
- "--line-length=79"
exclude: '^poetry\.lock$|\.pyc$|\.pyo$|\.pyd$|__pycache__|^venv|^\.venv'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ git clone https://github.com/astrogilda/tsbootstrap

4. Editable install via `pip`, including developer dependencies:
```
pip install -e .[dev]
pip install -e ".[dev]"
```

The editable install ensures that changes to the package are reflected in
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ classifiers = [

dependencies = [
"numpy<1.27,>=1.21",
"scikit-base>=0.6.1,<0.8.0",
"scikit-learn>=0.24,<1.5.0",
"scikit-base>=0.8.0,<=0.9.0",
"scikit-learn>=0.24,<=1.5.1",
"scipy>=1.2,<2.0.0",
"packaging",
]

[project.optional-dependencies]

all-extras = [
"arch>=5.0.0,<6.0.0",
"arch>=5.0.0,<=7.0.0",
"hmmlearn>=0.3.0,<0.3.2",
"pyclustering>=0.10.0,<0.11.0",
"scikit_learn_extra>=0.3.0,<0.4.0",
Expand Down
3 changes: 2 additions & 1 deletion tests/test_validate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pytest
from hypothesis import given
from hypothesis import given, settings
from hypothesis import strategies as st
from tsbootstrap.utils.validate import (
validate_block_indices,
Expand Down Expand Up @@ -142,6 +142,7 @@ def test_numpy_array_of_non_positive_integers(self, arr: np.ndarray):
):
validate_integers(arr, min_value=1)

@settings(deadline=None)
@given(
st.lists(st.integers(), min_size=1).map(lambda x: np.array([x, x]))
)
Expand Down

0 comments on commit 112f56e

Please sign in to comment.