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
```
[![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
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pylint_grandfather-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17b3297d9e7facba506c1366c52c35ef0631f5efcec87bc5e67bc7e89283c65a |
|
MD5 | 7f3fce46899be6318bd3a5468e8d571b |
|
BLAKE2b-256 | 48345a0f2507ba138b0180d03770bad515ce0e5b7bf33d2676e84c6773dd7df4 |