Giter Site home page Giter Site logo

Comments (6)

JelleZijlstra avatar JelleZijlstra commented on May 25, 2024

I can't reproduce this. Are you sure you are running the same version of Black every time?

from black.

hepcat72 avatar hepcat72 commented on May 25, 2024

Yes. Perhaps it requires more surrounding code context? I'm using a script that runs it. Let me try running it manually on one of the half a dozen files it does this to...

from black.

hepcat72 avatar hepcat72 commented on May 25, 2024

OK. Closing. Now it's not doing it. It has happened half a dozen times this morning. No clue why. Probably something I did. Sorry to bother.

from black.

hepcat72 avatar hepcat72 commented on May 25, 2024

The only thing I can think is... I didn't realize I hadn't pulled changes from the repo, and had done some work on the code. When I went to push, I got the rejection, so I pulled and merged the changes on the remote and resolved 3 conflicts (though the conflicting files weren't an entirely overlapping set with the ones that black was changing). After committing the merge results, it no longer changed back and forth. Is black somehow aware of changes in the git log? I didn't think it would, but that's the only thing I can think that could be related to this.

from black.

JelleZijlstra avatar JelleZijlstra commented on May 25, 2024

Black doesn't look at the git log.

from black.

hepcat72 avatar hepcat72 commented on May 25, 2024

Well then I'll chalk it up to a fluke. Still probably something I did.

from black.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.