Skip to content

Commit

Permalink
Explain pylint runs in an isolated virtualenv
Browse files Browse the repository at this point in the history
As described in pre-commit/pre-commit-hooks#157
using this hook runs pylint isolated from everything else.
  • Loading branch information
aleb committed Jan 8, 2020
1 parent 111f339 commit 6759ead
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ Add this to your `.pre-commit-config.yaml`:
rev: '' # Use the sha / tag you want to point at
hooks:
- id: pylint


Note: this way pylint runs in an isolated Python virtualenv.
If you need pylint to do dynamic analysis of the code
in the app's own Python virtualenv, use it as a
[Repository local hook](https://pre-commit.com/#repository-local-hooks).

0 comments on commit 6759ead

Please sign in to comment.