How to Train Your Dragon but instead it's a girl who finds a spaceship and goes to Top Gun school.
Like a mashup between Top Gun and Ender's Game with an old broken-down spaceship with a really weird personality.