Skip to content

Improve performance of pylint scans by changing several options #137

@stegalin

Description

@stegalin

Feature request type

  • Suppress false positives from existing pylint warnings
  • Add new pytest-specific warning
  • Other

Is your feature request related to a problem? Please describe.
Scanning files is increased in 4-6 times with pytest 8.4.1+ (compared to 8.3.5)

Describe the solution you'd like
Looks like could be used additional options in https://github.com/pylint-dev/pylint-pytest/blob/master/pylint_pytest/checkers/fixture.py on call pytest.main(...)

  • "--quiet" - small improve
  • "-p no:unraisableexception" - huge improve. Not sure that this is needed on scanning but added gc.collect() in it takes 0.3-0.6 seconds per scanned module

Describe alternatives you've considered
Don't know such

Sample code to demonstrate the current imperfect behavior
Added some debug output to check performance changes - this pytest change causes problem that becomes visible when start multiple times pytest.main

Additional context
Nothing to add

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions