Skip to content

Commit 209c50a

Browse files
authored
Merge branch 'develop' into dev-define-engines-abc
2 parents d8919d7 + b0b1474 commit 209c50a

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
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.5.7 pytest pytest-cov pytest-runner
33+
python -m pip install ruff==0.6.1 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
@@ -60,7 +60,7 @@ repos:
6060
- id: rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst.
6161
- repo: https://github.com/astral-sh/ruff-pre-commit
6262
# Ruff version.
63-
rev: v0.5.7
63+
rev: v0.6.1
6464
hooks:
6565
- id: ruff
6666
args: [--fix, --exit-non-zero-on-fix]

requirements/requirements_dev.txt

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

tests/test_annotation_stores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def sample_triangle() -> Polygon:
194194
return Polygon([(0, 0), (1, 1), (2, 0)])
195195

196196

197-
@pytest.fixture()
197+
@pytest.fixture
198198
def fill_store(
199199
cell_grid: list[Polygon],
200200
points_grid: list[Point],

tests/test_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from collections.abc import Generator
1818

1919

20-
@pytest.fixture()
20+
@pytest.fixture
2121
def source_files(root_path: Path) -> Generator:
2222
"""Recursively yield source files from the project."""
2323
ignore = {"__pycache__"}

tests/test_json_config_bokeh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def annotation_path(data_path: dict[str, Path]) -> dict[str, Path]:
4040
return data_path
4141

4242

43-
@pytest.fixture()
43+
@pytest.fixture
4444
def bk_session(data_path: dict[str, Path]) -> ClientSession:
4545
"""Create a bokeh session."""
4646
run_tileserver()

tests/test_server_bokeh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def annotation_path(data_path: dict[str, Path]) -> dict[str, Path]:
4646
return data_path
4747

4848

49-
@pytest.fixture()
49+
@pytest.fixture
5050
def bk_session(data_path: dict[str, Path]) -> ClientSession:
5151
"""Create a bokeh session."""
5252
run_tileserver()

tests/test_tileserver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _fill_store(
8787
return _fill_store
8888

8989

90-
@pytest.fixture()
90+
@pytest.fixture
9191
def app(remote_sample: Callable, tmp_path: Path) -> TileServer:
9292
"""Create a testing TileServer WSGI app."""
9393
# Make a low-res .jpg of the right shape to be used as
@@ -122,7 +122,7 @@ def app(remote_sample: Callable, tmp_path: Path) -> TileServer:
122122
return app
123123

124124

125-
@pytest.fixture()
125+
@pytest.fixture
126126
def app_alt(fill_store: Callable) -> TileServer:
127127
"""Create a testing TileServer WSGI app, with a different setup."""
128128
sample_slide = WSIReader.open(np.zeros((1000, 1000, 3), dtype=np.uint8))
@@ -147,7 +147,7 @@ def app_alt(fill_store: Callable) -> TileServer:
147147
return app
148148

149149

150-
@pytest.fixture()
150+
@pytest.fixture
151151
def empty_app() -> TileServer:
152152
"""Create a testing TileServer WSGI app with no layers."""
153153
app = TileServer(

tiatoolbox/annotation/storage.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def _eval_where(
939939
return True
940940
if isinstance(predicate, str):
941941
return bool(
942-
eval( # skipcq: PYL-W0123, # noqa: PGH001, S307
942+
eval( # skipcq: PYL-W0123, # noqa: S307
943943
predicate,
944944
PY_GLOBALS,
945945
{"props": properties},
@@ -1513,7 +1513,7 @@ def select_values(
15131513

15141514
if isinstance(select, str):
15151515
py_locals = {"props": annotation.properties}
1516-
return eval( # skipcq: PYL-W0123, # noqa: PGH001, S307
1516+
return eval( # skipcq: PYL-W0123, # noqa: S307
15171517
select,
15181518
PY_GLOBALS,
15191519
py_locals,
@@ -2831,7 +2831,7 @@ def _initialize_query_string_parameters(
28312831
query_parameters["where"] = where
28322832
# Predicate is a string
28332833
if isinstance(where, str):
2834-
sql_predicate = eval( # skipcq: PYL-W0123, # noqa: PGH001, S307
2834+
sql_predicate = eval( # skipcq: PYL-W0123, # noqa: S307
28352835
where,
28362836
SQL_GLOBALS,
28372837
{},
@@ -3441,7 +3441,7 @@ def pquery(
34413441
return_columns.append("[key]")
34423442
if is_str_query and not is_star_query:
34433443
select = cast(str, select)
3444-
select_names = eval( # skipcq: PYL-W0123, # noqa: PGH001, S307
3444+
select_names = eval( # skipcq: PYL-W0123, # noqa: S307
34453445
select,
34463446
SQL_GLOBALS,
34473447
{},
@@ -3869,7 +3869,7 @@ def create_index(
38693869
if not isinstance(where, str):
38703870
msg = f"Invalid type for `where` ({type(where)})."
38713871
raise TypeError(msg)
3872-
sql_predicate = eval( # skipcq: PYL-W0123, # noqa: PGH001, S307
3872+
sql_predicate = eval( # skipcq: PYL-W0123, # noqa: S307
38733873
where,
38743874
SQL_GLOBALS,
38753875
)

0 commit comments

Comments
 (0)