Giter VIP home page Giter VIP logo

licecomb's Introduction

licecomb

lice is a great tool for generating license files. licecomb is a tool for ensuring GitHub repositories actually have a license.

Installation

$ pip install licecomb

Usage

Check a well-behaved repo

$ licecomb doismellburning/licecomb
$ echo $?
0

Check a poorly-behaved repo

$ licecomb doismellburning/example_unlicensed_repo
ERROR: Could not find a license file in doismellburning/example_unlicensed_repo
$ echo $?
1

Authenticating to GitHub

$ # Get a Personal Access Token from https://github.com/settings/applications
$ export GITHUB_TOKEN=your_token_here
$ licecomb doismellburning

More verbose output

$ licecomb -v doismellburning/licecomb
SUCCESS: Found a license file in doismellburning/licecomb

Check all of a user/organisation's repos

$ licecomb doismellburning
# TODO Provide sample output

Ignore forked repositories

$ licecomb --ignore-forks doismellburning

Issues

  • There are many ways of declaring a license; licecomb does not and cannot track them all (currently only looking for /LICENSE)
    • License in README
    • License in code files
    • There's still the argument that having a /LICENSE file is A Good Thing To Do (there must be a pseudo-standard for this somewhere - it's certainly what GitHub now push at repository creation)

licecomb's People

Contributors

doismellburning avatar

Watchers

 avatar

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.