Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up default pylint config.rc file in Windows

I'm using Pylint under Windows, and it's not reading my pylint-config.rc file. Is there a way to set up a default .rc file for Python within windows so that I don't have to keep typing it into the command line? Thanks.

like image 465
brentlance Avatar asked Oct 31 '12 19:10

brentlance


People also ask

Where do I put Pylint RC?

config/pylintrc in your home directory. /etc/pylintrc for global configuration of machines.

Where do I put Pylintrc file?

pylintrc file is to place it in the same working directory as your code. Note: In the file you downloaded, the disable= checks are all on a single line. The list provided above is formatted onto separate lines to make it easier to read.

Where can I find Pylintrc Windows?

pylintrc file in your home directory (typically C:\Users\myusername) will be automatically recognized.


1 Answers

Since creating a file beginning with a dot is not allowed from Windows file explorer, you can create a template using:

pylint --generate-rcfile > .pylintrc
like image 85
user3573031 Avatar answered Oct 04 '22 06:10

user3573031