Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Dec 29, 2024
1 parent 31a52c3 commit 4af8b5c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
rev: v0.8.4
hooks:
- id: ruff
args: [ --fix ]
Expand Down
4 changes: 2 additions & 2 deletions injection/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

__all__ = (
"EarlyObject",
"InjectionKey",
"Injection",
"InjectionKey",
"ObjectState",
"inject",
"lenient_recursion_guard",
Expand All @@ -45,7 +45,7 @@


class InjectionKey(str):
__slots__ = ("origin", "hash", "reset", "early")
__slots__ = ("early", "hash", "origin", "reset")

def __init__(self, alias: str, early: EarlyObject[object]) -> None:
self.origin = alias
Expand Down
18 changes: 4 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ description = "Super-easy lazy importing in Python."
license = "MIT"
version = "1.0.0"
readme = "README.md"
packages = [{ include = "injection/" }]
homepage = "https://github.com/bswck/injection"
authors = [{ name = "bswck", email = "[email protected]" }]
requires-python = ">=3.9"

[tool.uv]
dev-dependencies = [
[dependency-groups]
dev = [
"mypy>=1.12.0",
"coverage>=7.6.3",
"ruff==0.6.8",
"ruff==0.8.4",
"pytest>=8.3.3",
"covdefaults>=2.3.0",
"pre-commit>=4.0.1",
Expand All @@ -28,14 +26,6 @@ dev-dependencies = [
# To discuss the presented rationales, contact the author (bswck).
select = ["ALL"]
ignore = [
# Description: Missing type annotation for self in method
# Rationale: It is mostly redundant, as is for ANN102.
"ANN101",

# Description: Missing type annotation for cls in method
# Rationale: It is mostly redundant, as is for ANN101.
"ANN102",

# Description: Dynamically typed expressions (typing.Any) are disallowed
# Rationale:
# We use Any to allow user to constrain return types of our functions on their own.
Expand Down Expand Up @@ -66,7 +56,7 @@ ignore = [

# Description: Move import into a type-checking block (etc.)
# Rationale: False negatives for Pydantic models.
"TCH",
"TC",

# Description: File is part of an implicit namespace package. Add an `__init__.py`
# Rationale: Implicit namespace packages are a feature
Expand Down
40 changes: 20 additions & 20 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4af8b5c

Please sign in to comment.