<#19516 isort no longer discovers configuration af...
# github-notifications
c
#19516 isort no longer discovers configuration after 2.14 to 2.16 upgrade Issue created by JordonPhillips Describe the bug A clear and concise description of the bug. I have a python packages with
pyproject.toml
files that contain tool configurations that differ somewhat between each package. Notably
isort
is configured to treat the
tests
directory as a source path. After upgrading to pants 2.16 from 2.14, isort no longer seems to be able to find that
pyproject.toml
as it is not treating the
tests
directory as source. Pants version Which version of Pants are you using? 2.16 OS Are you encountering the bug on MacOS, Linux, or both? MacOS Additional info Add any other information about the problem here, such as attachments or links to gists, if relevant. The BUILD configuration for the tests looks like:
Copy code
resource(name="pyproject", source="pyproject.toml")

python_test_utils(
    name="test_utils",
    sources=[
        "tests/**/conftest.py",  # pytest's conftest.py file
        "tests/**/*_utils.py",
    ]
)

python_tests(
    name="tests",
    dependencies=[
        ":test_utils",
        ":pyproject",
    ],
    sources=[
        "tests/unit/**/test_*.py",
        "tests/unit/**/tests.py",
        "tests/functional/**/test_*.py",
        "tests/functional/**/tests.py",
        "tests/integration/**/test_*.py",
        "tests/integration/**/tests.py",
    ]
)
There are no files other than
__run.sh
and
pex
in the sandboxes. The pyproject does show up in the
pants dependencies
list though. Also, if I invoke isort directly on the package it does what I would expect. pantsbuild/pants