Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
/ piprotpercentage Public archive

Your requirements.txt file is rotten by how many percent?

License

Notifications You must be signed in to change notification settings

cptx032/piprotpercentage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piprotpercentage

Your requirements.txt file is rotten by how many percent?

Goal

The goal is to create a number/percentage to indicate how rotten is your requirements file (and in the future support pipenv too). This Package is inspired by https://github.com/sesh/piprot

Usage

$ cd my-project/
$ ls
. .. requirements.txt
$ pip install git+https://github.com/cptx032/piprotpercentage.git
$ ROTTEN_PERCENTAGE=$(piprotpercentage.py ./requirements.txt)
$ echo My project is $ROTTEN_PERCENTAGE% rotten

.gitlab-ci job example

piprotpercentage:
  stage: metrics
  image: python:2.7
  script:
    - pip install -r requirements.txt
    - pip install git+https://github.com/cptx032/piprotpercentage.git anybadge
    - anybadge --suffix='%' -l piprot --value=$(piprotpercentage.py requirements.txt) --file=piprotpercentage.svg 100=red 80=orange 60=yellow 50=green
  artifacts:
    paths:
      - piprotpercentage.svg

About

Your requirements.txt file is rotten by how many percent?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages