Skip to content

Commit 99d1f58

Browse files
committed
Clean up pyproject and consistent names in strategies
1 parent e635682 commit 99d1f58

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["pip>=22.0.0", "setuptools", "setuptools_scm", "wheel"]
44

55
[project]
66
authors = [{ name = "janbjorge"}]
7-
description = "A Python library for real-time PostgreSQL event-driven cache invalidation, leveraging existing database infrastructure"
7+
description = "A Python library for real-time PostgreSQL event-driven cache invalidation."
88
dynamic = ["version"]
99
license = { text = "Apache 2.0" }
1010
name = "PGCacheWatch"
@@ -13,31 +13,31 @@ requires-python = ">=3.10"
1313

1414
classifiers = [
1515
"Development Status :: 4 - Beta",
16+
"Environment :: Other Environment",
17+
"Environment :: Web Environment",
18+
"Framework :: AsyncIO",
1619
"Intended Audience :: Developers",
1720
"License :: OSI Approved :: Apache Software License",
1821
"Natural Language :: English",
19-
"Programming Language :: Python",
22+
"Operating System :: OS Independent",
2023
"Programming Language :: Python :: 3.10",
2124
"Programming Language :: Python :: 3.11",
2225
"Programming Language :: Python :: 3.12",
23-
"Framework :: AsyncIO", # Highlighting async capabilities
24-
"Topic :: Database", # Directly indicating its primary focus on database interaction
26+
"Programming Language :: Python",
27+
"Topic :: Database",
2528
"Topic :: Software Development :: Libraries :: Python Modules",
2629
"Topic :: Utilities",
27-
"Operating System :: OS Independent",
28-
"Environment :: Web Environment",
29-
"Environment :: Other Environment"
3030
]
3131
dependencies = [
3232
"asyncpg>=0.27.0",
3333
"pydantic>=2.0.0",
3434
]
3535

3636
[project.urls]
37+
Documentation = "https://github.com/janbjorge/pgcachewatch/"
3738
Homepage = "https://github.com/janbjorge/pgcachewatch/"
38-
Repository = "https://github.com/janbjorge/pgcachewatch/"
3939
Issues = "https://github.com/janbjorge/pgcachewatch/issues"
40-
Documentation = "https://github.com/janbjorge/pgcachewatch/"
40+
Repository = "https://github.com/janbjorge/pgcachewatch/"
4141

4242
[project.optional-dependencies]
4343
dev = [
@@ -56,7 +56,6 @@ write_to = "src/pgcachewatch/_version.py"
5656

5757
[tool.ruff]
5858
line-length = 88
59-
exclude = ["version.py"]
6059
[tool.ruff.lint]
6160
select = [
6261
"C",

src/pgcachewatch/strategies.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def pg_connection_healthy(self) -> bool:
3737
return self._listener.pg_connection_healthy()
3838

3939
def clear(self) -> bool:
40-
for event in utils.pick_until_deadline(
40+
for current in utils.pick_until_deadline(
4141
self._listener,
4242
settings=self._deadline,
4343
):
44-
if self._predicate(event):
44+
if self._predicate(current):
4545
return True
4646
return False
4747

@@ -68,11 +68,11 @@ def pg_connection_healthy(self) -> bool:
6868
return self._listener.pg_connection_healthy()
6969

7070
def clear(self) -> bool:
71-
for event in utils.pick_until_deadline(
71+
for current in utils.pick_until_deadline(
7272
self._listener,
7373
settings=self._deadline,
7474
):
75-
self._events.append(event.operation)
75+
self._events.append(current.operation)
7676
if len(self._window) == len(self._events) and all(
7777
w == e for w, e in zip(self._window, self._events)
7878
):

0 commit comments

Comments
 (0)