<commit_before>pylint-server
====
[![Build Status](https://travis-ci.org/drivet/pylint-server.svg?branch=master)](https://travis-ci.org/drivet/pylint-server)
[![Coverage Status](https://coveralls.io/repos/drivet/pylint-server/badge.svg?branch=master)](https://coveralls.io/r/drivet/pylint-server?branch=master)
[![Pylint Rating](https://pylint.desmondrivet.com/drivet/pylint-server/rating.svg)](https://pylint.desmondrivet.com/drivet/pylint-server/report.html)

A small Flask application to keep keep track of pylint reports and ratings
on a per-repository basis.

## Requirements

The two main requirements are Flask and Travis.  No other build server ios
supported at the moment.

## Deployment and Usage

This application configures a POST route on /reports.  This endpoint accepts
a pylint report generated from your travis build, and a travis job id.

In your install section, put seomthing like the following:

install:
  - "pip install pylint"

In your after_success section, put something like this:

after_success:
  - pylint --output-format=html pylint_server > /tmp/pylint-report.html
  - curl -v -m 120 -X POST -F travis-job-id=$TRAVIS_JOB_ID -F pylint-report=@/tmp/pylint-report.html https://pylint.whatever.com/reports

Assuming you're using github, the app will deposit the report under:

/<githubuser>/<repo>/report.html

And a colour coded pylint rating image under:

/<githubuser>/<repo>/rating.svg

Put a badge on your README accordingly.
<commit_msg>add code climate badge to README<commit_after>pylint-server
====
[![Build Status](https://travis-ci.org/drivet/pylint-server.svg?branch=master)](https://travis-ci.org/drivet/pylint-server)
[![Coverage Status](https://coveralls.io/repos/drivet/pylint-server/badge.svg?branch=master)](https://coveralls.io/r/drivet/pylint-server?branch=master)
[![Code Climate](https://codeclimate.com/github/drivet/pylint-server/badges/gpa.svg)](https://codeclimate.com/github/drivet/pylint-server)
[![Pylint Rating](https://pylint.desmondrivet.com/drivet/pylint-server/rating.svg)](https://pylint.desmondrivet.com/drivet/pylint-server/report.html)

A small Flask application to keep keep track of pylint reports and ratings
on a per-repository basis.

## Requirements

The two main requirements are Flask and Travis.  No other build server ios
supported at the moment.

## Deployment and Usage

This application configures a POST route on /reports.  This endpoint accepts
a pylint report generated from your travis build, and a travis job id.

In your install section, put seomthing like the following:

install:
  - "pip install pylint"

In your after_success section, put something like this:

after_success:
  - pylint --output-format=html pylint_server > /tmp/pylint-report.html
  - curl -v -m 120 -X POST -F travis-job-id=$TRAVIS_JOB_ID -F pylint-report=@/tmp/pylint-report.html https://pylint.whatever.com/reports

Assuming you're using github, the app will deposit the report under:

/<githubuser>/<repo>/report.html

And a colour coded pylint rating image under:

/<githubuser>/<repo>/rating.svg

Put a badge on your README accordingly.

{'fraction_non_alphanumeric': 0.11943189154293092, 'fraction_numerical': 0.001936733376371853, 'mean_word_length': 4.770949720670391, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6009150', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1012, 'n_words': 275}