Coder Social home page Coder Social logo

Comments (3)

ktimothy avatar ktimothy commented on June 2, 2024 2

You can use --frozen flag. If anything needs annotation, the command with return exit status 1, failing a pipeline.

Keep in mind that you will need a database connection for annotate to run.

from annotate_models.

TiesWestendorp avatar TiesWestendorp commented on June 2, 2024

You can use --frozen flag. If anything needs annotation, the command with return exit status 1, failing a pipeline.

Awesome, I was using annotate; git diff --exit-code before this. This is much cleaner.

Keep in mind that you will need a database connection for annotate to run.

This would be nice to mention in README.md to be honest. Additionally, the auto-generated rake task was only generated for Rails.env.development?, so not for Rails.env.test?, which took a while for me to figure out. Maybe a CI/setup paragraph would be nice?

from annotate_models.

ndbroadbent avatar ndbroadbent commented on June 2, 2024

Awesome that worked, thanks! I switched from rake annotate_models | grep 'Model files unchanged.' to bundle exec annotate --models --frozen.

from annotate_models.

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.