Giter Site home page Giter Site logo

Comments (7)

pradyunsg avatar pradyunsg commented on June 19, 2024 2

I’m not a lawyer, so don’t take this as legal advice from me. IIUC, you don't need to update the copyright year on license declarations.

See also https://hynek.me/til/copyright-years/

from pre-commit-hooks.

kevbroch avatar kevbroch commented on June 19, 2024 1

It's up to you. I'll hopefully submit a PR adding the --update-year feature. If/when that happens I can always reference this issue for completeness.

from pre-commit-hooks.

kevbroch avatar kevbroch commented on June 19, 2024

Reading the docs I'm wondering if I leave the --remove-header enabled in the pre-commit cfg if that will just work.

from pre-commit-hooks.

Lucas-C avatar Lucas-C commented on June 19, 2024

Hi @kevbroch

I think the documentation you mentioned is quite explicit indeed.
And no, I don't think keeping the --remove-header option always set will work as you wish.
You need to perform the steps detailed in the doc whenever LICENSE.txt is edited

from pre-commit-hooks.

kevbroch avatar kevbroch commented on June 19, 2024

Thanks for the confirmation.

For my use case, of only updating the license header year if/when the file is edited for other reasons, I'll need to figure out some other method to automatically update those changed files.

from pre-commit-hooks.

Lucas-C avatar Lucas-C commented on June 19, 2024

Alright. Can I close this issue then ?

from pre-commit-hooks.

Lucas-C avatar Lucas-C commented on June 19, 2024

This feature has been implemented by @aostrowski in #59

from pre-commit-hooks.

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.