Skip to content

Commit 3fb5686

Browse files
[pre-commit.ci] pre-commit autoupdate (#770)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](astral-sh/ruff-pre-commit@v0.1.11...v0.1.13) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * 📌 Pin dependencies for `WSIDICOM` * ⏪ Revert automatic changes - Revert automatic changes to A003 flags * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * 📌 Pin ruff version * 📌 Pin ruff version --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shan E Ahmed Raza <[email protected]>
1 parent 3cea662 commit 3fb5686

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
sudo apt update
3131
sudo apt-get install -y libopenslide-dev openslide-tools libopenjp2-7 libopenjp2-tools
3232
python -m pip install --upgrade pip
33-
python -m pip install ruff==0.0.286 pytest pytest-cov pytest-runner
33+
python -m pip install ruff==0.1.13 pytest pytest-cov pytest-runner
3434
pip install -r requirements/requirements.txt
3535
- name: Cache tiatoolbox static assets
3636
uses: actions/cache@v3

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repos:
6868
language: python
6969
- repo: https://github.com/astral-sh/ruff-pre-commit
7070
# Ruff version.
71-
rev: v0.1.11
71+
rev: v0.1.13
7272
hooks:
7373
- id: ruff
7474
args: [--fix, --exit-non-zero-on-fix]

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ torch>=2.1.0
3232
torchvision>=0.15.0
3333
tqdm>=4.64.1
3434
umap-learn>=0.5.3
35-
wsidicom>=0.7.0
35+
wsidicom>=0.7.0, <0.18.0 # newly released version is causing tests to fail for now
3636
zarr>=2.13.3

requirements/requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pytest>=7.2.0
1212
pytest-cov>=4.0.0
1313
pytest-runner>=6.0
1414
pytest-xdist[psutil]
15-
ruff==0.0.286 # This will be updated by pre-commit bot to latest version
15+
ruff==0.1.13 # This will be updated by pre-commit bot to latest version
1616
toml>=0.10.2
1717
twine>=4.0.1
1818
wheel>=0.37.1

tiatoolbox/wsicore/metadata/ngff.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class CoordinateTransform:
100100
101101
"""
102102

103-
type: str = "identity" # noqa: A003
103+
type: str = "identity"
104104
scale: list[float] | None = None
105105

106106

@@ -140,7 +140,7 @@ class Axis:
140140
"""
141141

142142
name: TCZYX
143-
type: Literal["time", "space", "channel"] # noqa: A003
143+
type: Literal["time", "space", "channel"]
144144
unit: SpaceUnits | TimeUnits | None = None
145145

146146

@@ -186,8 +186,8 @@ class Window:
186186
"""
187187

188188
end: Number = 255
189-
max: Number = 255 # noqa: A003
190-
min: Number = 0 # noqa: A003
189+
max: Number = 255
190+
min: Number = 0
191191
start: Number = 0
192192

193193

@@ -257,7 +257,7 @@ class Omero:
257257
"""
258258

259259
name: str | None = None
260-
id: int = 1 # noqa: A003
260+
id: int = 1
261261
channels: list = field(
262262
default_factory=lambda: [
263263
Channel(label="Red", color="FF0000"),

tiatoolbox/wsicore/wsireader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class WSIReader:
225225
"""
226226

227227
@staticmethod
228-
def open( # noqa: A003, PLR0911
228+
def open( # noqa: PLR0911
229229
input_img: str | Path | np.ndarray | WSIReader,
230230
mpp: tuple[Number, Number] | None = None,
231231
power: Number | None = None,

0 commit comments

Comments
 (0)