Move --durations=10 to noxfile.py
MODIFY
noxfile.py
noxfile.py
@@ -55,6 +55,7 @@ def tests_impl(
f"--color={'yes' if 'GITHUB_ACTIONS' in os.environ else 'auto'}",
"--tb=native",
"--no-success-flaky-report",
+ "--durations=10",
*(session.posargs or ("test/",)),
env={"PYTHONWARNINGS": "always::DeprecationWarning"},
)

MODIFY
pyproject.toml
pyproject.toml
@@ -83,9 +83,6 @@ python_classes = ["Test", "*TestCase"]
filterwarnings = [
"error:There is no current event loop:DeprecationWarning:tornado.ioloop",
]
-addopts = """
- --durations=10
-"""
[tool.isort]
profile = "black"

Move --durations=10 to noxfile.py