Skip to content

Commit

Permalink
Merge pull request #95 from ikalnytskyi/chore/bump-ruff
Browse files Browse the repository at this point in the history
Bump ruff to 0.4.x
  • Loading branch information
ikalnytskyi authored Jun 23, 2024
2 parents f9bf788 + 0cfebc3 commit 030f809
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ scripts.run = "python -m pytest --strict-markers {args:-vv}"

[tool.hatch.envs.lint]
detached = true
dependencies = ["ruff == 0.2.*"]
dependencies = ["ruff == 0.4.*"]
scripts.run = ["ruff check {args:.}", "ruff format --check --diff {args:.}"]

[tool.hatch.envs.type]
Expand Down
2 changes: 1 addition & 1 deletion src/picobox/_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def do(magic):
"""

def __init__(self, name: t.Optional[str] = None):
self._name = name or "0x%x" % id(self)
self._name = name or f"0x{id(t):x}"
self._stack: t.List[Box] = []
self._lock = threading.Lock()

Expand Down
2 changes: 1 addition & 1 deletion src/picobox/ext/asgiscopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, app):
# Since we want stored objects to be garbage collected as soon as the
# storing scope instance is destroyed, scope instances have to be
# weakly referenced.
self.store: "Store" = weakref.WeakKeyDictionary()
self.store: Store = weakref.WeakKeyDictionary()

async def __call__(self, scope, receive, send):
"""Define scopes and invoke the ASGI application."""
Expand Down
2 changes: 1 addition & 1 deletion src/picobox/ext/wsgiscopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, app: "WSGIApplication") -> None:
# Since we want stored objects to be garbage collected as soon as the
# storing scope instance is destroyed, scope instances have to be
# weakly referenced.
self.store: "Store" = weakref.WeakKeyDictionary()
self.store: Store = weakref.WeakKeyDictionary()

def __call__(
self,
Expand Down

0 comments on commit 030f809

Please sign in to comment.