Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid sсan of non-project code (eg. site-packages libs) #24

Closed
hayorov opened this issue Sep 27, 2018 · 1 comment
Closed

Avoid sсan of non-project code (eg. site-packages libs) #24

hayorov opened this issue Sep 27, 2018 · 1 comment

Comments

@hayorov
Copy link

hayorov commented Sep 27, 2018

Hi there,

I got an issue running

pytest --dead-fixtures -v --dup-fixtures 
============================================================================= test session starts ==============================================================================
platform linux -- Python 3.6.6, pytest-3.8.1, py-1.6.0, pluggy-0.7.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
Using --randomly-seed=1538054705
Django settings: server.settings (from ini file)
rootdir: /app, inifile: setup.cfg
plugins: xdist-1.23.1, randomly-1.2.3, picked-0.3.0, isort-0.2.1, forked-0.2, flake8-1.0.2, django-3.4.3, deadfixtures-2.0.1, cov-2.6.0
[gw0] linux Python 3.6.6 cwd: /app
[gw1] linux Python 3.6.6 cwd: /app
[gw2] linux Python 3.6.6 cwd: /app
[gw3] linux Python 3.6.6 cwd: /app
collected 102 items

Hey there, I believe the following fixture(s) are not being used:
Fixture name: worker_id, location: /usr/local/lib/python3.6/dist-packages/xdist/plugin.py:194
    Return the id of the current worker ('gw0', 'gw1', etc) or 'master'
    if running on the master node.

How to skip/avoid scanning dist-packages and etc.

Tried:

  • pytest --dead-fixtures -v --dup-fixtures --ignore=/usr/local/lib/python3.6/dist-packages
  • add to setup.cfg
 [tool:pytest] 
norecursedirs = dist-packages /usr/local/lib/python3.6/dist-packages/

nothing helped.

@hayorov hayorov changed the title Avoid sanning non-project code (eg. site-packages libs) Avoid sсanning non-project code (eg. site-packages libs) Sep 27, 2018
@hayorov hayorov changed the title Avoid sсanning non-project code (eg. site-packages libs) Avoid sсaning non-project code (eg. site-packages libs) Sep 27, 2018
@hayorov hayorov changed the title Avoid sсaning non-project code (eg. site-packages libs) Avoid sсanning non-project code (eg. site-packages libs) Sep 27, 2018
@hayorov hayorov changed the title Avoid sсanning non-project code (eg. site-packages libs) Avoid sсan of non-project code (eg. site-packages libs) Sep 27, 2018
@jllorencetti
Copy link
Owner

Thanks for reporting @hayorov :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants