Skip to content

Commit bb189c0

Browse files
authored
fix(deps): remove unnecessary deps (#14)
1 parent a0adb81 commit bb189c0

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ repos:
4646
- id: ruff
4747
args: [--fix, --exit-non-zero-on-fix]
4848
- id: ruff-format
49+
- id: ruff-format
50+
types_or: [markdown, rst]
51+
require_serial: true
52+
entry: doccmd --language python --no-pad-file --command "ruff format"
53+
additional_dependencies: ["doccmd"]
4954
- repo: https://github.com/codespell-project/codespell
5055
rev: v2.4.1
5156
hooks:
@@ -55,10 +60,3 @@ repos:
5560
hooks:
5661
- id: mypy
5762
additional_dependencies: []
58-
- repo: https://github.com/adamtheturtle/doccmd-pre-commit
59-
rev: v2025.4.8
60-
hooks:
61-
- id: doccmd
62-
args:
63-
["--language", "python", "--no-pad-file", "--command", "ruff format"]
64-
additional_dependencies: ["ruff"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ classifiers = [
2626

2727
dependencies = [
2828
"array-api-compat>=1.11.2",
29-
"cm-time>=0.1.2",
3029
"frozendict>=2.4.6",
3130
]
3231
urls."Bug Tracker" = "https://github.com/34j/array-api-jit/issues"
@@ -36,6 +35,7 @@ urls.repository = "https://github.com/34j/array-api-jit"
3635

3736
[dependency-groups]
3837
dev = [
38+
"cm-time>=0.1.2",
3939
"jax>=0.4.30",
4040
"numba>=0.60.0",
4141
"pytest>=8,<9",

src/array_api_jit/_main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# https://github.com/search?q=gumerov+translation+language%3APython&type=code&l=Python
21
import importlib.util
32
import warnings
43
from collections.abc import Callable, Mapping, Sequence
@@ -14,7 +13,6 @@
1413
is_numpy_namespace,
1514
is_torch_namespace,
1615
)
17-
from frozendict import frozendict
1816

1917
if importlib.util.find_spec("numba"):
2018
import numpy as np
@@ -123,8 +121,8 @@ def jit(
123121
"""
124122

125123
def new_decorator(f: Callable[Pinner, Tinner]) -> Callable[Pinner, Tinner]:
126-
decorator_args_ = frozendict(decorator_args or {})
127-
decorator_kwargs_ = frozendict(decorator_kwargs or {})
124+
decorator_args_ = decorator_args or {}
125+
decorator_kwargs_ = decorator_kwargs or {}
128126
decorator_ = decorator or {}
129127

130128
@cache

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_jit(xp: Any) -> None:
116116
print(xp.__name__, name)
117117
for i in range(20):
118118
with timer() as timer_:
119-
x = xp.arange(1000000, dtype=xp.float32)
119+
x = xp.arange(1000000, dtype=xp.float32) / 1000000
120120
p = func(x, 10)
121121
assert p.shape == (1000000, 10)
122122
t[name] = timer_.elapsed

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)