pylint-dev / pylint

It's not just a linter that annoys you!
https://pylint.readthedocs.io/en/latest/
GNU General Public License v2.0
5.24k stars 1.12k forks source link

Create configuration templates with message tiers or presets #7120

Open Pierre-Sassoulas opened 2 years ago

Pierre-Sassoulas commented 2 years ago

Current problem

Pylint do not permit to use a preset configuration like some tool like eslint so the configuration is lengthy and often copy pasted.

Desired solution

Something that permits to expands on a sane configuration depending on your project and easily share a configuration. I.e. data science project would have x,y,z in good-names, but not web-project, etc.

Additional context

This is a new issue so we can close #746 that had a lot of other things in it see https://github.com/PyCQA/pylint/issues/746#issuecomment-1004654717. It was also discussed at length in #3512. See also https://github.com/PyCQA/pylint/issues/6968

sisp commented 2 years ago

As an addition to a preset configuration, I think shareable configurations would help standardize configurations, e.g. in large corporate environments. With shareable configurations, best practices can be configured in a central place and updates to those configurations can be obtained by package updates in downstream projects.