Setup known first party modules

This commit is contained in:
Matthias 2024-05-12 15:20:36 +02:00
parent a8eabd0b2e
commit baa15f6ed6
4 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python3
from freqtrade_client import __version__ as client_version
from freqtrade import __version__ as ft_version
from freqtrade_client import __version__ as client_version
def main():

View File

@ -8,6 +8,7 @@ from pathlib import Path
from typing import Any, Dict
import rapidjson
from freqtrade_client import __version__
from freqtrade_client.ft_rest_client import FtRestClient

View File

@ -2,9 +2,10 @@ import re
from unittest.mock import MagicMock
import pytest
from requests.exceptions import ConnectionError
from freqtrade_client import FtRestClient
from freqtrade_client.ft_client import add_arguments, main_exec
from requests.exceptions import ConnectionError
def log_has_re(line, logs):

View File

@ -79,6 +79,7 @@ profile = "black"
# multi_line_output=3
lines_after_imports=2
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
known_first_party = ["freqtrade_client"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
@ -160,6 +161,7 @@ extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["freqtrade_client"]
[tool.flake8]
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore