import pytest
import compas
import math
import numpy


def pytest_ignore_collect(path):
    if "rhino" in str(path):
        return True

    if "blender" in str(path):
        return True

    if "ghpython" in str(path):
        return True

    if "matlab" in str(path):
        return True

    if "robots" in str(path):
        return True

    if str(path).endswith('_cli.py'):
        return True


@pytest.fixture(autouse=True)
def add_compas(doctest_namespace):
    doctest_namespace["compas"] = compas


@pytest.fixture(autouse=True)
def add_math(doctest_namespace):
    doctest_namespace["math"] = math


@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
    doctest_namespace["np"] = numpy

import pytest
import compas
import math
import numpy


def pytest_ignore_collect(path):
    if "rhino" in str(path):
        return True

    if "blender" in str(path):
        return True

    if "ghpython" in str(path):
        return True

    if "matlab" in str(path):
        return True

    if str(path).endswith('_cli.py'):
        return True


@pytest.fixture(autouse=True)
def add_compas(doctest_namespace):
    doctest_namespace["compas"] = compas


@pytest.fixture(autouse=True)
def add_math(doctest_namespace):
    doctest_namespace["math"] = math


@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
    doctest_namespace["np"] = numpy

Remove robots from pytest path ignore, as requested by @gonzalocasas.
Remove robots from pytest path ignore, as requested by @gonzalocasas.

  import pytest
  import compas
  import math
  import numpy
  
  
  def pytest_ignore_collect(path):
      if "rhino" in str(path):
          return True
  
      if "blender" in str(path):
          return True
  
      if "ghpython" in str(path):
          return True
  
      if "matlab" in str(path):
-         return True
- 
-     if "robots" in str(path):
          return True
  
      if str(path).endswith('_cli.py'):
          return True
  
  
  @pytest.fixture(autouse=True)
  def add_compas(doctest_namespace):
      doctest_namespace["compas"] = compas
  
  
  @pytest.fixture(autouse=True)
  def add_math(doctest_namespace):
      doctest_namespace["math"] = math
  
  
  @pytest.fixture(autouse=True)
  def add_np(doctest_namespace):
      doctest_namespace["np"] = numpy
  
Remove robots from pytest path ignore, as requested by @gonzalocasas.
## Code Before:
import pytest
import compas
import math
import numpy


def pytest_ignore_collect(path):
    if "rhino" in str(path):
        return True

    if "blender" in str(path):
        return True

    if "ghpython" in str(path):
        return True

    if "matlab" in str(path):
        return True

    if "robots" in str(path):
        return True

    if str(path).endswith('_cli.py'):
        return True


@pytest.fixture(autouse=True)
def add_compas(doctest_namespace):
    doctest_namespace["compas"] = compas


@pytest.fixture(autouse=True)
def add_math(doctest_namespace):
    doctest_namespace["math"] = math


@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
    doctest_namespace["np"] = numpy

## Instruction:
Remove robots from pytest path ignore, as requested by @gonzalocasas.
## Code After:
import pytest
import compas
import math
import numpy


def pytest_ignore_collect(path):
    if "rhino" in str(path):
        return True

    if "blender" in str(path):
        return True

    if "ghpython" in str(path):
        return True

    if "matlab" in str(path):
        return True

    if str(path).endswith('_cli.py'):
        return True


@pytest.fixture(autouse=True)
def add_compas(doctest_namespace):
    doctest_namespace["compas"] = compas


@pytest.fixture(autouse=True)
def add_math(doctest_namespace):
    doctest_namespace["math"] = math


@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
    doctest_namespace["np"] = numpy
