From 61cdfd4377068eef2061898b9ea883a1f7b192f1 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Wed, 10 Apr 2024 09:08:08 +0200 Subject: [PATCH] wip --- adaptive/utils.py | 4 ++-- pyproject.toml | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/adaptive/utils.py b/adaptive/utils.py index 0afe33a4c..4e57a067f 100644 --- a/adaptive/utils.py +++ b/adaptive/utils.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index b34f91291..bea9ac7d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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]