Merge pull request #9929 from freqtrade/dependabot/pip/develop/ruff-0.3.2

Bump ruff from 0.3.0 to 0.3.2
This commit is contained in:
Matthias
2024-03-11 19:16:52 +01:00
committed by GitHub
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ pytest tests/test_<file_name>.py::test_<method_name>
#### Run Ruff #### Run Ruff
```bash ```bash
ruff . ruff check .
``` ```
We receive a lot of code that fails the `ruff` checks. We receive a lot of code that fails the `ruff` checks.
+4 -2
View File
@@ -20,8 +20,10 @@ class SKDecimal(Integer):
super().__init__(_low, _high, prior, base, transform, name, dtype) super().__init__(_low, _high, prior, base, transform, name, dtype)
def __repr__(self): def __repr__(self):
return "Decimal(low={}, high={}, decimals={}, prior='{}', transform='{}')".format( return (
self.low_orig, self.high_orig, self.decimals, self.prior, self.transform_) f"Decimal(low={self.low_orig}, high={self.high_orig}, decimals={self.decimals}, "
f"prior='{self.prior}', transform='{self.transform_}')"
)
def __contains__(self, point): def __contains__(self, point):
if isinstance(point, list): if isinstance(point, list):
+2 -3
View File
@@ -77,9 +77,8 @@ class CryptoToFiatConverter(LoggingMixin):
return return
# If the request is not a 429 error we want to raise the normal error # If the request is not a 429 error we want to raise the normal error
logger.error( logger.error(
"Could not load FIAT Cryptocurrency map for the following problem: {}".format( "Could not load FIAT Cryptocurrency map for the following problem: "
request_exception f"{request_exception}"
)
) )
except (Exception) as exception: except (Exception) as exception:
logger.error( logger.error(
+1 -1
View File
@@ -7,7 +7,7 @@
-r docs/requirements-docs.txt -r docs/requirements-docs.txt
coveralls==3.3.1 coveralls==3.3.1
ruff==0.3.0 ruff==0.3.2
mypy==1.9.0 mypy==1.9.0
pre-commit==3.6.2 pre-commit==3.6.2
pytest==8.1.1 pytest==8.1.1