isort: skip not respected with add_imports config option
Author: NumerlorCreated Aug 7, 2022Updated Sep 1, 2026
When imports are added through isort's add_imports, existing imports with the isort: skip comment are moved around.
For example with the following config
[settings]
add_imports=import athese imports
import stay_on_top # isort: skip
import bare sorted into (and the skip goes into its own section for some reason)
import a
import b
import stay_on_top # isort: skipSource: PyCQA/isort