flaky-artist-57016
08/04/2022, 2:59 PM./pants fmt ::
. After this, ./pants lint ::
shows the linters are satisfied with the work they’ve done. However, if I then run ./pants lint subdirectory::
some of the linters complain that they would make changes (isort
in particular). Any idea what’s going on here? ./pants tailor
succeeds without issue so the BUILD files look to be in order.
’m seeing a strange issue in the Python monorepo I’m working in. If I runbitter-ability-32190
08/04/2022, 3:00 PMisort
quirk.
See https://www.pantsbuild.org/docs/python-linters-and-formatters#isort-possible-issues-with-its-import-classifier-algorithmisort
as I understand it pokes around the directories to try and deduce firstparty code. If someone of those dirs aren't in the "bucket" we're using for formatting, isort doesn't recognize the import as firstpartyflaky-artist-57016
08/04/2022, 3:02 PMisort
tries to make in those subdirectories effectively reverts some of the changes it makes when running over the whole repo.bitter-ability-32190
08/04/2022, 3:19 PMhappy-kitchen-89482
08/04/2022, 3:30 PMflaky-artist-57016
08/04/2022, 6:31 PMknown_first_party
in your isort config. Here is an example:
known_first_party = module_one,module_two,module_three,other_module