Giter Club home page Giter Club logo

Comments (6)

KwatMDPhD avatar KwatMDPhD commented on June 15, 2024

Hi Christopher,

Thank you for your input 👍

I am going to try to (the following is also a note to myself) modularize each application (formatter or whatever an end user wants to apply) for each cell. The challenge is how each application communicates with the previous and the next one. I think we can solve this challenge using echo piping to keep applications as flexible as possible as well as easy to customize. If you have other ideas, feel free to let me know :)

Let's do it. When this is implemented, please give it a try and let me know how it goes.

Best,
Kwat

from clean.jl.

fantapop avatar fantapop commented on June 15, 2024

I think I understand what you mean. The way pre-commit works is it expects that there is a cli tool available which can take a list of files on the command line. In general, all of these formatters will at least work at that level. Some of them allow you to pipe in and get the output. One idea is that you could read each code block out of the jupyter notebook, write it to a temporary file, then run the list of temporary files through the formatters and recreate the notebook after they're done.

from clean.jl.

KwatMDPhD avatar KwatMDPhD commented on June 15, 2024

I merged @samhardyhey 's pull request. Next, I'm trying to meet @fantapop 's requests while maintaining @samhardyhey 's inputs. Thank you for waiting.

from clean.jl.

samhardyhey avatar samhardyhey commented on June 15, 2024

@fantapop, is there a library that lints spacing specifically? Something more than just black?

from clean.jl.

fantapop avatar fantapop commented on June 15, 2024

from clean.jl.

kishansairam9 avatar kishansairam9 commented on June 15, 2024

@fantapop and @KwatME : I think I have worked out a solution for generic tooling

  • My solution is present as this branch on my fork.
  • I have described how it works by under 3.0 Features in README.md
  • I have tested this to work on both py & ipynb

Sending a pr

from clean.jl.

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.