Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Apr 10, 2024
1 parent 8d3257f commit 61cdfd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions adaptive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ def submit(self, fn: Callable, *args, **kwargs) -> concurrent.Future: # type: i
fut: concurrent.Future = concurrent.Future()
try:
fut.set_result(fn(*args, **kwargs))
except Exception as e:
except Exception as e: # noqa: BLE001
fut.set_exception(e)
return fut

def map(self, fn, *iterable, timeout=None, chunksize=1):
return map(fn, iterable)

def shutdown(self, wait=True) -> None:
def shutdown(self, wait: bool = True) -> None:
pass


Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ ignore = [
"TD003", # Missing issue link on the line following this TODO
"FIX002", # Line contains TODO, consider resolving the issue
"FBT001", # Boolean-typed positional argument in function definition
"PLR2004", # Magic value used in comparison
"PLR0913", # Too many arguments in function definition
]
select = ["ALL"]

Expand All @@ -123,10 +125,13 @@ max-complexity = 18
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"SLF001",
"PLR2004", # Magic value used in comparison
]
"ci/*" = ["INP001"]
"tests/test_examples.py" = ["E501"]
"docs/logo.py" = ["ALL"]
"ipynb_filter.py" = ["ALL"]
"benchmarks/*" = ["ALL"]


[tool.versioningit]

Expand Down

0 comments on commit 61cdfd4

Please sign in to comment.