Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Add options for when no .pylintrc is found #256

Open
demeralde opened this issue Apr 28, 2018 · 2 comments
Open

Add options for when no .pylintrc is found #256

demeralde opened this issue Apr 28, 2018 · 2 comments

Comments

@demeralde
Copy link

Not all the projects I work on use Pylint. On the ones that don't it throws errors because linter-pylint expects it to be configured.

To work around this I think the best solution would be to add options for when no .pylintrc is found:

  • Disabling the plugin entirely (ESLint has this option)
  • Using a default Pylint configuration instead

My current settings for Pylint are as follows:

Executable Path: %p/.venv/bin/pylint
Python Path: %p/.venv/bin/python
Rc File: %p/.pylintrc

@andb0t
Copy link

andb0t commented Feb 11, 2019

I would greatly appreciate a solution here. At the moment I always have to disable it by hand to avoid being swamped by

[Linter] Error running Pylint
See Console for more info.
[...]
OSError: The config file [MY_PROJECT]/.pylintrc doesn't exist!

errors. Can't commit to contributing myself to this, even though I might have a look at it. In case one of you experienced guys is quicker, I'd be really thankful ;)

@andb0t
Copy link

andb0t commented Feb 11, 2019

I think it should be something like if (this.rcFile !== '' && File.Exists(this.rcFile)) { in this line, but I don't know how to do that in JS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants