mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
Setup known first party modules
This commit is contained in:
parent
a8eabd0b2e
commit
baa15f6ed6
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from freqtrade_client import __version__ as client_version
|
|
||||||
|
|
||||||
from freqtrade import __version__ as ft_version
|
from freqtrade import __version__ as ft_version
|
||||||
|
from freqtrade_client import __version__ as client_version
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -8,6 +8,7 @@ from pathlib import Path
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
import rapidjson
|
import rapidjson
|
||||||
|
|
||||||
from freqtrade_client import __version__
|
from freqtrade_client import __version__
|
||||||
from freqtrade_client.ft_rest_client import FtRestClient
|
from freqtrade_client.ft_rest_client import FtRestClient
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,10 @@ import re
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from requests.exceptions import ConnectionError
|
||||||
|
|
||||||
from freqtrade_client import FtRestClient
|
from freqtrade_client import FtRestClient
|
||||||
from freqtrade_client.ft_client import add_arguments, main_exec
|
from freqtrade_client.ft_client import add_arguments, main_exec
|
||||||
from requests.exceptions import ConnectionError
|
|
||||||
|
|
||||||
|
|
||||||
def log_has_re(line, logs):
|
def log_has_re(line, logs):
|
||||||
|
|
|
@ -79,6 +79,7 @@ profile = "black"
|
||||||
# multi_line_output=3
|
# multi_line_output=3
|
||||||
lines_after_imports=2
|
lines_after_imports=2
|
||||||
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
|
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
|
||||||
|
known_first_party = ["freqtrade_client"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
asyncio_mode = "auto"
|
asyncio_mode = "auto"
|
||||||
|
@ -160,6 +161,7 @@ extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
[tool.ruff.lint.isort]
|
||||||
lines-after-imports = 2
|
lines-after-imports = 2
|
||||||
|
known-first-party = ["freqtrade_client"]
|
||||||
|
|
||||||
[tool.flake8]
|
[tool.flake8]
|
||||||
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
|
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
|
||||||
|
|
Loading…
Reference in New Issue
Block a user