Skip to main content

Grandfather in specific pylint failures

Project description

# pylint-grandfather

[![Build Status](https://travis-ci.org/jacob-meacham/pylint-grandfather.svg?branch=develop)](https://travis-ci.org/jacob-meacham/pylint-grandfather)

# Introduction
Sometimes, you have an old project that you'd like to introduce pylint to. Usually, this is a huge feat, because the old project might have hundreds or thousands (or more!) lint issues. Fixing all of these issues might actually introduce more bugs than it solves, depending on how long the project has been running. pylint-grandfather allows you to grandfather in old code, while still enforcing that all new or changed code is pylint compliant.

# Quick Start
```
pip install pylint-grandfather
pylint my_base_dir | pylint-grandfather --base_dir my_base_dir
```

Note that this will actually touch all files, so be sure to do this with a clean working directory.

# Usage
```
usage: pylint-grandfather.py [-h] [--base-dir BASE_DIR] [--dry-run DRY_RUN]
infile

positional arguments:
infile Output from a pylint run

optional arguments:
-h, --help show this help message and exit
--base-dir BASE_DIR Base directory for pylint run
--dry-run DRY_RUN Output what files will be changed, but do not change
them
```

# Release Notes
* 1.0.0 - Initial version


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint-grandfather-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_grandfather-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pylint-grandfather-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pylint-grandfather-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d5c299b922082fd9835657a0d4e375c5c4f83ff1f1d6c923aebe2034bd486ee4
MD5 38a1a2a83d8f4c4fa1fe34e5f313f864
BLAKE2b-256 112ec1be4ef9298fd4b6df74e260ee2e265b47a02b78cc9edf17c7143a393ed4

See more details on using hashes here.

File details

Details for the file pylint_grandfather-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_grandfather-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0480c80d693aa89307b60790146243ae6422cf2785d4e15c28c2a30e61ba4648
MD5 c92675f524546c9d5c79ee7bda136ee6
BLAKE2b-256 a3e001122f52282d5d900f17f0b6de0485c566140701d7aa7efca224f108135d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page