Skip to content

GliderGeek/pylintconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylintconfig

Pylint is a great linter, which thoroughly analyses your code. Running it for the first time on an existing codebase can be intimidating though, because it outputs hundreds of errors! Through all the errors, you don't see the important ones and skip Pylint alltogether.

pylintconfig is a small cli which makes it easier to implement Pylint in an existing codebase. It helps creating a configuration file which checks the errors you find important and skips the rest.

Install

pip install pylintconfig

Basic usage

  1. Generate a configuration which explicitly disables all current pylint errors:
pylintconfig disable MODULES_OR_PACKAGES > .pylintrc
  1. Prune this list such that the usefull errors are enabled.

  2. Generate an ignore list which explicitly ignores all files with errors:

pylintconfig ignore MODULES_OR_PACKAGES
  1. Add this list to .pylintrc and you are ready to go:
  • Pylint does not give errors and can be added to you CI runner
  • The ignore list provides a todo list for files which need some work
  • New errors will present itself if not in the ignore list or not explicitly disabled.

Future plans

  • Add tests
  • Load current pylintrc file and combine it with new

About

cli for easy configuration of pylint

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages