Skip to content

Smarter file patching #2

Description

@ipmb

Potential problems with the current approach:

  • middleware/apps will get added twice if they already exist pre-patch
  • imports may be duplicated and get added somewhere other than the top of the file where they should be

Doing it with AST like how django-upgrade works will probably be more robust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions