You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ran in venv
-> % pylama nornir
nornir/__init__.py:3:0: Import statements are in the wrong order. 'from nornir.init_nornir import InitNornir' should be before 'import pkg_resources' and in a different group. [import_order]
nornir/init_nornir.py:3:0: Import statements are in the wrong order. 'from nornir.init_nornir import InitNornir' should be before 'import pkg_resources' and in a different group. [import_order]
nornir/core/configuration.py:3:0: Import statements are in the wrong order. 'from nornir.init_nornir import InitNornir' should be before 'import pkg_resources' and in a different group. [import_order]
nornir/core/task.py:3:0: Import statements are in the wrong order. 'from nornir.init_nornir import InitNornir' should be before 'import pkg_resources' and in a different group. [import_order]
nornir/core/connections.py:3:0: Import statements are in the wrong order. 'from nornir.init_nornir import InitNornir' should be before 'import pkg_resources' and in a different group. [import_order]
nornir/core/__init__.py:3:0: Import statements are in the wrong order. 'from nornir.init_nornir import InitNornir' should be before 'import pkg_resources' and in a different group. [import_order]
the same happens if you do poetry run pylama, make tests or make pylama.
According to @carlmontanari, for some reason it does not happen in CI.
I tried different combinations of flake8-import-order config, including:
Symptoms:
the same happens if you do
poetry run pylama
,make tests
ormake pylama
.According to @carlmontanari, for some reason it does not happen in CI.
I tried different combinations of
flake8-import-order
config, including:and some others with no success.
This seems to be working fine in
flake8
:I am giving up trying to solve this and will submit PR which disables the linter with
# noqa
on the offending line.The text was updated successfully, but these errors were encountered: