【发布时间】:2022-08-24 18:49:52
【问题描述】:
在本地运行 isort 时(例如 python -m isort . 或 poetry run isort .、isort 似乎对事物进行排序与 CI 中的不同,因此当我的 CI 作业使用 python -m isort --check-only . 检查格式是否正确时会失败。
正确的:
import azure
import pytest
from my_package_name.example import Example1, Example2
错误,本地运行
import azure
import pytest
from my_package_name.example import Example1, Example2