So (^|[\W])(?<file>(?:\p{Alpha}\:|/)[0-9 a-z_A-Z\-\\./]+)(?<=\.py) is regexp used for $FILE_PATH.
you need to modify isort output format to something with clear filepath boundaries, or use something more fancy in regexp like positive look behind, which would make your filter look like this: $FILE_PATH$(?<=\.py)( |$)
tl;dr use
$FILE_PATH$(?<=\.py)( |$)
as filter.So
(^|[\W])(?<file>(?:\p{Alpha}\:|/)[0-9 a-z_A-Z\-\\./]+)(?<=\.py)
is regexp used for$FILE_PATH
.you need to modify isort output format to something with clear filepath boundaries, or use something more fancy in regexp like positive look behind, which would make your filter look like this:
$FILE_PATH$(?<=\.py)( |$)