Description
the following two codes are practically equivalent but the 2nd one gets a E402 error in ruff v0.9.4
import os
import sys
sys.path.append(os.path.dirname(__file__)) # sys.path.append gets special exception when appearing above imports
from package import module
import os
import sys
sys.path += [os.path.dirname(__file__)] # get E402 here
from package import module
i think the bottom code should be treated same as the top, i.e. not raise an error
Description
the following two codes are practically equivalent but the 2nd one gets a
E402error inruffv0.9.4i think the bottom code should be treated same as the top, i.e. not raise an error