diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py index 932f9b701..5c4e6df5d 100644 --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -30,5 +30,5 @@ if "dev" in __version__: versionfile = Path("./freqtrade_commit") if versionfile.is_file(): __version__ = f"docker-{__version__}-{versionfile.read_text()[:8]}" - except Exception: + except Exception: # noqa: S110 pass diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 7ae2791bf..b19fca9dc 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -489,7 +489,7 @@ class Hyperopt: ) def _set_random_state(self, random_state: Optional[int]) -> int: - return random_state or random.randint(1, 2**16 - 1) + return random_state or random.randint(1, 2**16 - 1) # noqa: S311 def advise_and_trim(self, data: Dict[str, DataFrame]) -> Dict[str, DataFrame]: preprocessed = self.backtesting.strategy.advise_all_indicators(data) diff --git a/ft_client/freqtrade_client/__init__.py b/ft_client/freqtrade_client/__init__.py index 9ede4dd12..60b5d1164 100644 --- a/ft_client/freqtrade_client/__init__.py +++ b/ft_client/freqtrade_client/__init__.py @@ -31,7 +31,7 @@ if "dev" in __version__: versionfile = Path("./freqtrade_commit") if versionfile.is_file(): __version__ = f"docker-{__version__}-{versionfile.read_text()[:8]}" - except Exception: + except Exception: # noqa: S110 pass __all__ = ["FtRestClient"]