I am running linux. Can I do something like pylint --generate-rcfile > .pylintrc
and then make changes to the resulting .pylintrc
file to override the default settings? And if so should it be in my ~/
directory or should I put it in .pylint.d?
相关问题
- Pylint ignore-patterns Not Working
- pylint ignored-classes in source file
- Nose tools and pylint
- Start PyLint from correct anaconda environment in
- pip installed pylint cannot be found
相关文章
- How do I disable a Pylint specific error message g
- Pylint W0223: Method … is abstract in class … but
- How to prevent python pylint complaining about soc
- pylint false positive E0401 import errors in vscod
- Using Pylint in Ipython (Jupyter-Notebook)
- Pylint badge in gitlab
- How to deal with Pylint's “too-many-instance-a
- visual studio code disable auto wrap long line
According to documentation here, we can use the following command to generate a pylint rc file with all its options present:
The above command will create the file
.pylintrc
under your home directory. Then you can tweak the rc file to fit your needs.You may put it in:
/etc/pylintrc
for default global configuration~/.pylintrc
for default user configuration<your project>/pylintrc
for default project configuration (used when you'll runpylint <your project>
)pylint --rcfile=<wherever I want>
Also notice when generating the rc file, you may add option on the command line before the
--generate-rcfile
, they will be considered in the generated file.