Giter Site home page Giter Site logo

Failed Test case about augraphy HOT 2 CLOSED

sparkfish avatar sparkfish commented on May 29, 2024
Failed Test case

from augraphy.

Comments (2)

proofconstruction avatar proofconstruction commented on May 29, 2024

Sure - I've recently added these CI tests, which are documented a bit here

If you scroll up in the error log a bit, you'll see this:

Reorder python imports...................................................Failed
- hook id: reorder-python-imports
- exit code: 1
- files were modified by this hook

Reordering imports in augraphy/augmentations/__init__.py
Reordering imports in augraphy/augmentations/strikethrough.py

Add trailing commas......................................................Failed
- hook id: add-trailing-comma
- exit code: 1
- files were modified by this hook

Rewriting augraphy/utilities/figsharedownloader.py
Rewriting augraphy/augmentations/strikethrough.py

black....................................................................Failed
- hook id: black
- files were modified by this hook

reformatted augraphy/augmentations/dirtydrum.py
reformatted augraphy/augmentations/badphotocopy.py
reformatted augraphy/augmentations/lib.py
reformatted augraphy/augmentations/folding.py
reformatted augraphy/augmentations/lowinkline.py
reformatted augraphy/augmentations/pencilscribbles.py
reformatted augraphy/augmentations/strikethrough.py
reformatted augraphy/base/paperfactory.py
reformatted augraphy/utilities/figsharedownloader.py
reformatted augraphy/utilities/imageoverlay.py
reformatted augraphy/utilities/overlaybuilder.py
All done! ✨ 🍰 ✨
11 files reformatted, 35 files left unchanged.

What this means is, the code checkers we run in GitHub Actions thought there were incorrect parts of those files, so they changed them to the correct format. These tools can't automatically fix the files you commit or push, but if you use pre-commit (documented in https://github.com/sparkfish/augraphy/blob/dev/doc/contributing.md) locally, they can fix those files, prevent you from committing incorrectly-formatted code, and then when you commit again, the files you commit will be correctly formatted.

Try installing pre-commit with pip install pre-commit, and then in your project directory run pre-commit run --all-files to make the code checkers reformat everything.

Let me know if you need more help

from augraphy.

proofconstruction avatar proofconstruction commented on May 29, 2024

Looks like you got it

from augraphy.

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.