Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
The other batch is done locally.

Co-authored-by: Enrique González Paredes <enriqueg@cscs.ch>
  • Loading branch information
philip-paul-mueller and egparedes authored May 14, 2024
1 parent ec4d7ae commit 2e1ebcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ section-order = [
"!tests/**.py" = ["PT"] # Ignore `flake8-pytest-style` everywhere except in `tests/`
"noxfile.py" = ["T20"] # Ignore `flake8-print`
"tests/**" = [
"T10",
"T20", # Ignore `flake8-debugger` and `flake8-print`
"F841", # Ignore assigned but not used; inside `with` to test if throw.
"T10", # Ignore `flake8-debugger`
"T20", # Ignore `flake8-print`
"F841", # Ignore `unused-variable` (inside `with` to test if throws)
]
2 changes: 1 addition & 1 deletion src/jace/translator/jaxpr_translator_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def map_jax_var_to_sdfg(
def map_jax_var_to_sdfg(
self,
jax_var: str | jax_core.Atom | util.JaCeVar,
allow_fail: bool,
allow_fail: Literal[True],
) -> str | None: ...

def map_jax_var_to_sdfg(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_jaxpr_translator_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


@pytest.fixture(scope="module")
def alloc_driver():
def translation_driver():
"""Returns an allocated driver instance."""
name = "fixture_driver"
driver = jtrans.JaxprTranslationDriver()
Expand Down

0 comments on commit 2e1ebcd

Please sign in to comment.