leinardi/pylint-pycharm

Add option to Lint "Sources" directories rather than excluded "Excluded" ones

Open

#13 opened on Sep 4, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (38 forks)github user discovery
Priority: MediumStatus: AcceptedStatus: StaleType: Enhancementhelp wanted

Repository metrics

Stars
 (202 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe. This plugin currently lints all directories that are not marked as "Excluded". This doesn't seem like a recommended behaviour, most notably, the use of a virtualenv is very popular in the python community and the virtualenv directory will often sit inside your project in a folder called venv or similar. Marking your virtualenv directory as "Excluded" would not be normal practice when using pycharm. Similarly its common to have various useful scripts in directories that are not part of the module and are undesirable to have linted. Auto-generated migrations sometimes to not want to be linted either.

Describe the solution you'd like Ideally rather than linting all files except those marked as "Excluded" it would instead only lint those directories marked as a "Sources Root".

Describe alternatives you've considered Marking all directories except one as "Excluded".

Additional context This change would essentially be a backwards incompatible change without updating configuration. Perhaps there could be a setting for this to avoid the issue?

Contributor guide