Skip to content

drivet/pylint-server

Repository files navigation

pylint-server

Build Status Coverage Status Code Climate Pylint Rating

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 something 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.

About

A web application, written in Flask, for creating pylint badges and storing pylint reports

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages