pylint-pytest icon indicating copy to clipboard operation
pylint-pytest copied to clipboard

A Pylint plugin to suppress pytest-related false positives.

Results 17 pylint-pytest issues
Sort by recently updated
recently updated
newest added

Hi @reverbc Thanks a lot for creating this project. As you might have seen, the project is already linked quite often in issue inside the pylint project. However, the last...

**Feature request type** - [X] Suppress false positives from existing pylint warnings - [ ] Add new pytest-specific warning - [ ] Other **Is your feature request related to a...

enhancement

This change applies the pre-existing patterns to identify if the files with collection problems are tests. It is then used to eliminate the false-positives of F6401 (cannot-enumerate-pytest-fixtures). As a side...

On Windows, importing fixtures can still raise `unused-import` warnings. In my case, this happens when linting with VSCode. Debugging revealed that the bug is within `pylint_pytest.utils._is_same_module(...)`: ``` if inspect.getmodule(fixture.func).__file__ ==...

bug

First, I want to thank you for an awesome plugin!❤️‍🔥 This issue doesn't require any fixes! It's aimed to help others who can face with this issue. My local Pylint...

bug

Please see [coveragepy \#1282](https://github.com/nedbat/coveragepy/issues/1282)

bug

**Describe the bug** When using a imported fixture with dependencies its dependencies need to be imported too. These imported dependencies are reported as unused by pylint-pytest. **To Reproduce** Package versions...

bug

**Describe the bug** If the fatal error `cannot-enumerate-pytest-fixtures` is raised, pylint exists with a 0. **To Reproduce** See #24 for all details. Also, use the following toml ```toml [tool.pylint.master] load-plugins...

bug

**Describe the bug** In the `FixtureCollector`, the variables `fixtures` and `errors` are defined as class variables, not as instance attributes, This means, if e.g. first a non-test file is checked,...

bug