Update linting scripts and codebase to be compatible with `isort` v5.