Giter Site home page Giter Site logo

Include new prettify about dbcsr HOT 10 CLOSED

alazzaro avatar alazzaro commented on August 20, 2024
Include new prettify

from dbcsr.

Comments (10)

dev-zero avatar dev-zero commented on August 20, 2024 2

we can use whatever you want to be used ;-)

from dbcsr.

alazzaro avatar alazzaro commented on August 20, 2024

Close with 972f09e

from dbcsr.

dev-zero avatar dev-zero commented on August 20, 2024

we could integrate the fprettify via pre-commit instead?

from dbcsr.

alazzaro avatar alazzaro commented on August 20, 2024

Sure, of course. My first step was to include it...

from dbcsr.

pseewald avatar pseewald commented on August 20, 2024

I would suggest imposing a less aggressive version of fprettify that only fixes indentation but otherwise leaves whitespace formatting intact (fprettify --disable-whitespace). Same for CP2K, but due to legacy-prettify and legacy-doxify we are not ready yet for such a change... It's much easier to justify and explain to external contributors and reduces prettify noise in commit history.

If we include fprettify via git submodule, can we use latest release instead of master branch? Or do I need to create a branch with releases only?

from dbcsr.

alazzaro avatar alazzaro commented on August 20, 2024

@pseewald @dev-zero What's the status of this issue?
My trick was to do this in the Makefile:

# Pretty function, check if the file requires update
define pretty_func
        @mkdir -p $(PRETTYOBJDIR)
        @rm -f $2
        $(TOOLSRC)/fprettify/fprettify.py --disable-whitespace -s $1 > $2
        @cmp -s $1 $2; \
        RETVAL=$$?; \
        if [ $$RETVAL -ne 0 ]; then \
            cp $2 $1; \
        fi
endef

but I think we can now remove it with the new prettifier, right?

from dbcsr.

pseewald avatar pseewald commented on August 20, 2024

I still need to fix pseewald/fprettify#34

from dbcsr.

alazzaro avatar alazzaro commented on August 20, 2024

OK, then I will move this issue to v3. No rush.

from dbcsr.

pseewald avatar pseewald commented on August 20, 2024

I still need to fix pseewald/fprettify#34

This is fixed

from dbcsr.

alazzaro avatar alazzaro commented on August 20, 2024

closed via #270

from dbcsr.

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.