Giter Site home page Giter Site logo

Comments (3)

paulhfischer avatar paulhfischer commented on July 26, 2024

this select field isn't for filtering the language-key, as the language in which the hook is written doesn't matter for the end user in most cases. it instead is for filtering the types-key which can be configured for each hook in your .pre-commit-hooks.yaml file (https://pre-commit.com/#config-types).

the dropdown is then automatically generated - as there currently are no hooks with types=[r], r isn't listed.

from pre-commit.com.

paulhfischer avatar paulhfischer commented on July 26, 2024

additional info: the association type <-> file-extension is done with identify (https://github.com/pre-commit/identify/blob/master/identify/extensions.py#L156). you probably have to extend this library for .rmd files etc. before being able to use types= in all your hooks.

from pre-commit.com.

lorenzwalthert avatar lorenzwalthert commented on July 26, 2024

Thanks @paulhfischer. I noted the use of identify. Have to think how I can use tags, because R has quite a few different file types (.Rprofile, .Rmd, .R, DESCRIPTION etc.) that are quite specific to R and I am not sure the maintainer of identify wants to add all of them (to avoid convolution) but I can suggest it over there.

from pre-commit.com.

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.