diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5c5dd00837524548141ef02f0846c3d30b61caf..bade5ab63cd04f0cc02864d1958feeecb0329c64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,13 @@ on: - cron: '17 3 * * 0' jobs: + typos: + name: Typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@master + ruff: name: Ruff runs-on: ubuntu-latest diff --git a/arraycontext/impl/jax/__init__.py b/arraycontext/impl/jax/__init__.py index 92838351091d4c8207bdd5abfdc478f98a0f34c3..c52b24a67c5e20c657a6a3deb60435879c8db6c9 100644 --- a/arraycontext/impl/jax/__init__.py +++ b/arraycontext/impl/jax/__init__.py @@ -151,7 +151,7 @@ class EagerJAXArrayContext(ArrayContext): return array def tag_axis(self, iaxis, tags: ToTagSetConvertible, array): - # TODO: See `jax.experiemental.maps.xmap`, proabably that should be useful? + # TODO: See `jax.experiemental.maps.xmap`, probably that should be useful? return array def call_loopy(self, t_unit, **kwargs): diff --git a/arraycontext/impl/jax/fake_numpy.py b/arraycontext/impl/jax/fake_numpy.py index 6c9192ba7ebb979b726ccf53454922c60784da4f..afe672834ad208ed3612532038bccbe70f5c0c18 100644 --- a/arraycontext/impl/jax/fake_numpy.py +++ b/arraycontext/impl/jax/fake_numpy.py @@ -174,7 +174,7 @@ class EagerJAXFakeNumpyNamespace(BaseFakeNumpyNamespace): else: return reduce( jnp.logical_and, - [rec_equal(ix, iy) for (_, ix), (_, iy) in iterable], + [rec_equal(x_i, y_i) for (_, x_i), (_, y_i) in iterable], true) return rec_equal(a, b) diff --git a/arraycontext/impl/pyopencl/fake_numpy.py b/arraycontext/impl/pyopencl/fake_numpy.py index 22b1bff9044ec3283af5c1c6f45e43dd54cf45dd..2583bfa2d995f24fdda51b2ee292d59c68488009 100644 --- a/arraycontext/impl/pyopencl/fake_numpy.py +++ b/arraycontext/impl/pyopencl/fake_numpy.py @@ -231,7 +231,7 @@ class PyOpenCLFakeNumpyNamespace(LoopyBasedFakeNumpyNamespace): else: return reduce( partial(cl_array.minimum, queue=queue), - [rec_equal(ix, iy)for (_, ix), (_, iy) in iterable], + [rec_equal(x_i, y_i)for (_, x_i), (_, y_i) in iterable], true) result = rec_equal(a, b) diff --git a/arraycontext/impl/pyopencl/taggable_cl_array.py b/arraycontext/impl/pyopencl/taggable_cl_array.py index af3ab15ecfea457d4db0840124d31b2ac24ddb6d..a0f3ef47bcc27d1ad0c88473a29e7aa21f34f04d 100644 --- a/arraycontext/impl/pyopencl/taggable_cl_array.py +++ b/arraycontext/impl/pyopencl/taggable_cl_array.py @@ -20,8 +20,9 @@ from pytools.tag import Tag, Taggable, ToTagSetConvertible @dataclass(frozen=True, eq=True) class Axis(Taggable): """ - Records the tags corresponding to a dimensions of :class:`TaggableCLArray`. + Records the tags corresponding to a dimension of :class:`TaggableCLArray`. """ + tags: FrozenSet[Tag] def _with_new_tags(self, tags: FrozenSet[Tag]) -> "Axis": diff --git a/arraycontext/impl/pytato/fake_numpy.py b/arraycontext/impl/pytato/fake_numpy.py index aa0e0e8940d38cb2802aec2df23038a1bb10ec75..9c41b52376bf5666c20afa506cf65495d1104085 100644 --- a/arraycontext/impl/pytato/fake_numpy.py +++ b/arraycontext/impl/pytato/fake_numpy.py @@ -189,7 +189,7 @@ class PytatoFakeNumpyNamespace(LoopyBasedFakeNumpyNamespace): else: return reduce( pt.logical_and, - [rec_equal(ix, iy) for (_, ix), (_, iy) in iterable], + [rec_equal(x_i, y_i) for (_, x_i), (_, y_i) in iterable], true) return rec_equal(a, b) diff --git a/pyproject.toml b/pyproject.toml index 10dba60af1c1ac4bfa78229b789c24f8df3683d2..6c4cdc4af58881cc7289faa830c8e9f32a948717 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -135,3 +135,8 @@ module = [ "jax.*", ] ignore_missing_imports = true + +[tool.typos.default] +extend-ignore-re = [ + "(?Rm)^.*(#|//)\\s*spellchecker:\\s*disable-line$" +]