Skip to content

Commit

Permalink
Activate pylint-pytest plugin (ansible#782)
Browse files Browse the repository at this point in the history
Activate `pylint-pytest` plugin

This patch is necessary because pylint does not autoactivate third-
party plugins just because they are installed in the same virtualenv.
It seems like this bit of the original configuration got lost over
time: the Python distribution package is present in the dependencies
and gets installed but pylint does not use it. With this change, it
becomes used again.

Reviewed-by: Bradley A. Thornton <[email protected]>
Reviewed-by: None <None>
  • Loading branch information
webknjaz authored and ssbarnea committed Jan 30, 2022
1 parent 3f5ca51 commit e69ff9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ skip_glob = ["tests/fixtures/common/collections*"] # Skip ansible content due to
# tm_tokenize is virtually vendored and shouldn't be linted as such
ignore = "tm_tokenize"

load-plugins = [
"pylint_pytest", # suppresses false-positive violations in pytest tests
]

[tool.pylint.messages_control]
disable = [
"duplicate-code",
Expand Down

0 comments on commit e69ff9e

Please sign in to comment.